Package org.lwjgl.vulkan
Class VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT
public class VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing the shader demote to helper invocations features that can be supported by an implementation.Description
If the
VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturescan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures { VkStructureTypesType(); void *pNext(); VkBool32shaderDemoteToHelperInvocation(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.BufferAn array ofVkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
SHADERDEMOTETOHELPERINVOCATIONThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturescalloc()Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesinstance allocated withmemCalloc.static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturescreate()Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesinstance allocated withBufferUtils.static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Buffercreate(int capacity)Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturescreate(long address)Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesinstance for the specified memory address.static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Bufferinstance at the specified memory.static VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturescreateSafe(long address)static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesmalloc()Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesinstance allocated withmemAlloc.static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnshaderDemoteToHelperInvocation(long struct)Unsafe version ofshaderDemoteToHelperInvocation().static voidnshaderDemoteToHelperInvocation(long struct, int value)Unsafe version ofshaderDemoteToHelperInvocation.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturespNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesset(int sType, long pNext, boolean shaderDemoteToHelperInvocation)Initializes this struct with the specified values.VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesset(VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures src)Copies the specified struct data to this struct.booleanshaderDemoteToHelperInvocation()indicates whether the implementation supports the SPIR-VDemoteToHelperInvocationEXTcapability.VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesshaderDemoteToHelperInvocation(boolean value)Sets the specified value to theshaderDemoteToHelperInvocation()field.intsizeof()intsType()the type of this structure.VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DEMOTE_TO_HELPER_INVOCATION_FEATURESvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures
public VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesinstance 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.
-
shaderDemoteToHelperInvocation
public boolean shaderDemoteToHelperInvocation()
indicates whether the implementation supports the SPIR-VDemoteToHelperInvocationEXTcapability.
-
sType
public VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DEMOTE_TO_HELPER_INVOCATION_FEATURESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures pNext(long value)
Sets the specified value to thepNext()field.
-
shaderDemoteToHelperInvocation
public VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures shaderDemoteToHelperInvocation(boolean value)
Sets the specified value to theshaderDemoteToHelperInvocation()field.
-
set
public VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures set(int sType, long pNext, boolean shaderDemoteToHelperInvocation)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures set(VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures malloc()
Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures calloc()
Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures create()
Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures create(long address)
Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures createSafe(long address)
-
malloc
public static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Buffer create(int capacity)
Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderDemoteToHelperInvocationFeatures.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().
-
nshaderDemoteToHelperInvocation
public static int nshaderDemoteToHelperInvocation(long struct)
Unsafe version ofshaderDemoteToHelperInvocation().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nshaderDemoteToHelperInvocation
public static void nshaderDemoteToHelperInvocation(long struct, int value)Unsafe version ofshaderDemoteToHelperInvocation.
-
-