Package org.lwjgl.vulkan
Class VkPhysicalDeviceShaderTerminateInvocationFeatures
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceShaderTerminateInvocationFeatures
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceShaderTerminateInvocationFeaturesKHR
public class VkPhysicalDeviceShaderTerminateInvocationFeatures extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing support for the SPIR-VSPV_KHR_terminate_invocationextension.Description
If the
VkPhysicalDeviceShaderTerminateInvocationFeaturesstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceShaderTerminateInvocationFeaturescan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceShaderTerminateInvocationFeatures { VkStructureTypesType(); void *pNext(); VkBool32shaderTerminateInvocation(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceShaderTerminateInvocationFeatures.BufferAn array ofVkPhysicalDeviceShaderTerminateInvocationFeaturesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
SHADERTERMINATEINVOCATIONThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceShaderTerminateInvocationFeatures(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceShaderTerminateInvocationFeaturesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceShaderTerminateInvocationFeaturescalloc()Returns a newVkPhysicalDeviceShaderTerminateInvocationFeaturesinstance allocated withmemCalloc.static VkPhysicalDeviceShaderTerminateInvocationFeatures.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceShaderTerminateInvocationFeatures.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceShaderTerminateInvocationFeatures.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderTerminateInvocationFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShaderTerminateInvocationFeaturescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderTerminateInvocationFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShaderTerminateInvocationFeaturescreate()Returns a newVkPhysicalDeviceShaderTerminateInvocationFeaturesinstance allocated withBufferUtils.static VkPhysicalDeviceShaderTerminateInvocationFeatures.Buffercreate(int capacity)Returns a newVkPhysicalDeviceShaderTerminateInvocationFeatures.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceShaderTerminateInvocationFeaturescreate(long address)Returns a newVkPhysicalDeviceShaderTerminateInvocationFeaturesinstance for the specified memory address.static VkPhysicalDeviceShaderTerminateInvocationFeatures.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceShaderTerminateInvocationFeatures.Bufferinstance at the specified memory.static VkPhysicalDeviceShaderTerminateInvocationFeaturescreateSafe(long address)static VkPhysicalDeviceShaderTerminateInvocationFeatures.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceShaderTerminateInvocationFeaturesmalloc()Returns a newVkPhysicalDeviceShaderTerminateInvocationFeaturesinstance allocated withmemAlloc.static VkPhysicalDeviceShaderTerminateInvocationFeatures.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceShaderTerminateInvocationFeatures.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceShaderTerminateInvocationFeatures.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderTerminateInvocationFeatures.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceShaderTerminateInvocationFeaturesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderTerminateInvocationFeaturesinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnshaderTerminateInvocation(long struct)Unsafe version ofshaderTerminateInvocation().static voidnshaderTerminateInvocation(long struct, int value)Unsafe version ofshaderTerminateInvocation.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.VkPhysicalDeviceShaderTerminateInvocationFeaturespNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceShaderTerminateInvocationFeaturesset(int sType, long pNext, boolean shaderTerminateInvocation)Initializes this struct with the specified values.VkPhysicalDeviceShaderTerminateInvocationFeaturesset(VkPhysicalDeviceShaderTerminateInvocationFeatures src)Copies the specified struct data to this struct.booleanshaderTerminateInvocation()specifies whether the implementation supports SPIR-V modules that use theSPV_KHR_terminate_invocationextension.VkPhysicalDeviceShaderTerminateInvocationFeaturesshaderTerminateInvocation(boolean value)Sets the specified value to theshaderTerminateInvocation()field.intsizeof()intsType()the type of this structure.VkPhysicalDeviceShaderTerminateInvocationFeaturessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceShaderTerminateInvocationFeaturessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_TERMINATE_INVOCATION_FEATURESvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceShaderTerminateInvocationFeatures
public VkPhysicalDeviceShaderTerminateInvocationFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceShaderTerminateInvocationFeaturesinstance 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.
-
shaderTerminateInvocation
public boolean shaderTerminateInvocation()
specifies whether the implementation supports SPIR-V modules that use theSPV_KHR_terminate_invocationextension.
-
sType
public VkPhysicalDeviceShaderTerminateInvocationFeatures sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceShaderTerminateInvocationFeatures sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_TERMINATE_INVOCATION_FEATURESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceShaderTerminateInvocationFeatures pNext(long value)
Sets the specified value to thepNext()field.
-
shaderTerminateInvocation
public VkPhysicalDeviceShaderTerminateInvocationFeatures shaderTerminateInvocation(boolean value)
Sets the specified value to theshaderTerminateInvocation()field.
-
set
public VkPhysicalDeviceShaderTerminateInvocationFeatures set(int sType, long pNext, boolean shaderTerminateInvocation)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceShaderTerminateInvocationFeatures set(VkPhysicalDeviceShaderTerminateInvocationFeatures src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceShaderTerminateInvocationFeatures malloc()
Returns a newVkPhysicalDeviceShaderTerminateInvocationFeaturesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceShaderTerminateInvocationFeatures calloc()
Returns a newVkPhysicalDeviceShaderTerminateInvocationFeaturesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceShaderTerminateInvocationFeatures create()
Returns a newVkPhysicalDeviceShaderTerminateInvocationFeaturesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceShaderTerminateInvocationFeatures create(long address)
Returns a newVkPhysicalDeviceShaderTerminateInvocationFeaturesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceShaderTerminateInvocationFeatures createSafe(long address)
-
malloc
public static VkPhysicalDeviceShaderTerminateInvocationFeatures.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceShaderTerminateInvocationFeatures.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceShaderTerminateInvocationFeatures.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceShaderTerminateInvocationFeatures.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceShaderTerminateInvocationFeatures.Buffer create(int capacity)
Returns a newVkPhysicalDeviceShaderTerminateInvocationFeatures.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceShaderTerminateInvocationFeatures.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceShaderTerminateInvocationFeatures.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceShaderTerminateInvocationFeatures.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceShaderTerminateInvocationFeatures malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderTerminateInvocationFeaturesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceShaderTerminateInvocationFeatures calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderTerminateInvocationFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceShaderTerminateInvocationFeatures.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderTerminateInvocationFeatures.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceShaderTerminateInvocationFeatures.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderTerminateInvocationFeatures.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().
-
nshaderTerminateInvocation
public static int nshaderTerminateInvocation(long struct)
Unsafe version ofshaderTerminateInvocation().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nshaderTerminateInvocation
public static void nshaderTerminateInvocation(long struct, int value)Unsafe version ofshaderTerminateInvocation.
-
-