Package org.lwjgl.vulkan
Class VkPhysicalDeviceSubpassShadingFeaturesHUAWEI
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceSubpassShadingFeaturesHUAWEI
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceSubpassShadingFeaturesHUAWEI extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing whether subpass shading is enabled.Description
If the
VkPhysicalDeviceSubpassShadingFeaturesHUAWEIstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceSubpassShadingFeaturesHUAWEIcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceSubpassShadingFeaturesHUAWEI { VkStructureTypesType(); void *pNext(); VkBool32subpassShading(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceSubpassShadingFeaturesHUAWEI.BufferAn array ofVkPhysicalDeviceSubpassShadingFeaturesHUAWEIstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
SUBPASSSHADINGThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceSubpassShadingFeaturesHUAWEI(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceSubpassShadingFeaturesHUAWEIinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceSubpassShadingFeaturesHUAWEIcalloc()Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEIinstance allocated withmemCalloc.static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSubpassShadingFeaturesHUAWEIcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEIinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSubpassShadingFeaturesHUAWEIcreate()Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEIinstance allocated withBufferUtils.static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Buffercreate(int capacity)Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceSubpassShadingFeaturesHUAWEIcreate(long address)Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEIinstance for the specified memory address.static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Bufferinstance at the specified memory.static VkPhysicalDeviceSubpassShadingFeaturesHUAWEIcreateSafe(long address)static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceSubpassShadingFeaturesHUAWEImalloc()Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEIinstance allocated withmemAlloc.static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceSubpassShadingFeaturesHUAWEImalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEIinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnsubpassShading(long struct)Unsafe version ofsubpassShading().static voidnsubpassShading(long struct, int value)Unsafe version ofsubpassShading.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceSubpassShadingFeaturesHUAWEIpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceSubpassShadingFeaturesHUAWEIset(int sType, long pNext, boolean subpassShading)Initializes this struct with the specified values.VkPhysicalDeviceSubpassShadingFeaturesHUAWEIset(VkPhysicalDeviceSubpassShadingFeaturesHUAWEI src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceSubpassShadingFeaturesHUAWEIsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceSubpassShadingFeaturesHUAWEIsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SUBPASS_SHADING_FEATURES_HUAWEIvalue to thesType()field.booleansubpassShading()specifies whether subpass shading is supported.VkPhysicalDeviceSubpassShadingFeaturesHUAWEIsubpassShading(boolean value)Sets the specified value to thesubpassShading()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceSubpassShadingFeaturesHUAWEI
public VkPhysicalDeviceSubpassShadingFeaturesHUAWEI(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceSubpassShadingFeaturesHUAWEIinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
subpassShading
public boolean subpassShading()
specifies whether subpass shading is supported.
-
sType
public VkPhysicalDeviceSubpassShadingFeaturesHUAWEI sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceSubpassShadingFeaturesHUAWEI sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SUBPASS_SHADING_FEATURES_HUAWEIvalue to thesType()field.
-
pNext
public VkPhysicalDeviceSubpassShadingFeaturesHUAWEI pNext(long value)
Sets the specified value to thepNext()field.
-
subpassShading
public VkPhysicalDeviceSubpassShadingFeaturesHUAWEI subpassShading(boolean value)
Sets the specified value to thesubpassShading()field.
-
set
public VkPhysicalDeviceSubpassShadingFeaturesHUAWEI set(int sType, long pNext, boolean subpassShading)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceSubpassShadingFeaturesHUAWEI set(VkPhysicalDeviceSubpassShadingFeaturesHUAWEI src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI malloc()
Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEIinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI calloc()
Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEIinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI create()
Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEIinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI create(long address)
Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEIinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI createSafe(long address)
-
malloc
public static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Buffer create(int capacity)
Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEIinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEIinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSubpassShadingFeaturesHUAWEI.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nsubpassShading
public static int nsubpassShading(long struct)
Unsafe version ofsubpassShading().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nsubpassShading
public static void nsubpassShading(long struct, int value)Unsafe version ofsubpassShading.
-
-