Package org.lwjgl.vulkan
Class VkPhysicalDeviceShaderClockFeaturesKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceShaderClockFeaturesKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceShaderClockFeaturesKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing features supported by VK_KHR_shader_clock.Description
If the
VkPhysicalDeviceShaderClockFeaturesKHRstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceShaderClockFeaturesKHRcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CLOCK_FEATURES_KHR
Layout
struct VkPhysicalDeviceShaderClockFeaturesKHR { VkStructureTypesType(); void *pNext(); VkBool32shaderSubgroupClock(); VkBool32shaderDeviceClock(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceShaderClockFeaturesKHR.BufferAn array ofVkPhysicalDeviceShaderClockFeaturesKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
SHADERDEVICECLOCK
SHADERSUBGROUPCLOCKThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceShaderClockFeaturesKHR(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceShaderClockFeaturesKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceShaderClockFeaturesKHRcalloc()Returns a newVkPhysicalDeviceShaderClockFeaturesKHRinstance allocated withmemCalloc.static VkPhysicalDeviceShaderClockFeaturesKHR.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceShaderClockFeaturesKHR.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceShaderClockFeaturesKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderClockFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShaderClockFeaturesKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderClockFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShaderClockFeaturesKHRcreate()Returns a newVkPhysicalDeviceShaderClockFeaturesKHRinstance allocated withBufferUtils.static VkPhysicalDeviceShaderClockFeaturesKHR.Buffercreate(int capacity)Returns a newVkPhysicalDeviceShaderClockFeaturesKHR.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceShaderClockFeaturesKHRcreate(long address)Returns a newVkPhysicalDeviceShaderClockFeaturesKHRinstance for the specified memory address.static VkPhysicalDeviceShaderClockFeaturesKHR.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceShaderClockFeaturesKHR.Bufferinstance at the specified memory.static VkPhysicalDeviceShaderClockFeaturesKHRcreateSafe(long address)static VkPhysicalDeviceShaderClockFeaturesKHR.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceShaderClockFeaturesKHRmalloc()Returns a newVkPhysicalDeviceShaderClockFeaturesKHRinstance allocated withmemAlloc.static VkPhysicalDeviceShaderClockFeaturesKHR.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceShaderClockFeaturesKHR.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceShaderClockFeaturesKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderClockFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceShaderClockFeaturesKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderClockFeaturesKHRinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnshaderDeviceClock(long struct)Unsafe version ofshaderDeviceClock().static voidnshaderDeviceClock(long struct, int value)Unsafe version ofshaderDeviceClock.static intnshaderSubgroupClock(long struct)Unsafe version ofshaderSubgroupClock().static voidnshaderSubgroupClock(long struct, int value)Unsafe version ofshaderSubgroupClock.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.VkPhysicalDeviceShaderClockFeaturesKHRpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceShaderClockFeaturesKHRset(int sType, long pNext, boolean shaderSubgroupClock, boolean shaderDeviceClock)Initializes this struct with the specified values.VkPhysicalDeviceShaderClockFeaturesKHRset(VkPhysicalDeviceShaderClockFeaturesKHR src)Copies the specified struct data to this struct.booleanshaderDeviceClock()indicates whether shaders can performDevicescoped clock reads.VkPhysicalDeviceShaderClockFeaturesKHRshaderDeviceClock(boolean value)Sets the specified value to theshaderDeviceClock()field.booleanshaderSubgroupClock()indicates whether shaders can performSubgroupscoped clock reads.VkPhysicalDeviceShaderClockFeaturesKHRshaderSubgroupClock(boolean value)Sets the specified value to theshaderSubgroupClock()field.intsizeof()intsType()the type of this structure.VkPhysicalDeviceShaderClockFeaturesKHRsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceShaderClockFeaturesKHRsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CLOCK_FEATURES_KHRvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceShaderClockFeaturesKHR
public VkPhysicalDeviceShaderClockFeaturesKHR(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceShaderClockFeaturesKHRinstance 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.
-
shaderSubgroupClock
public boolean shaderSubgroupClock()
indicates whether shaders can performSubgroupscoped clock reads.
-
shaderDeviceClock
public boolean shaderDeviceClock()
indicates whether shaders can performDevicescoped clock reads.
-
sType
public VkPhysicalDeviceShaderClockFeaturesKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceShaderClockFeaturesKHR sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CLOCK_FEATURES_KHRvalue to thesType()field.
-
pNext
public VkPhysicalDeviceShaderClockFeaturesKHR pNext(long value)
Sets the specified value to thepNext()field.
-
shaderSubgroupClock
public VkPhysicalDeviceShaderClockFeaturesKHR shaderSubgroupClock(boolean value)
Sets the specified value to theshaderSubgroupClock()field.
-
shaderDeviceClock
public VkPhysicalDeviceShaderClockFeaturesKHR shaderDeviceClock(boolean value)
Sets the specified value to theshaderDeviceClock()field.
-
set
public VkPhysicalDeviceShaderClockFeaturesKHR set(int sType, long pNext, boolean shaderSubgroupClock, boolean shaderDeviceClock)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceShaderClockFeaturesKHR set(VkPhysicalDeviceShaderClockFeaturesKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceShaderClockFeaturesKHR malloc()
Returns a newVkPhysicalDeviceShaderClockFeaturesKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceShaderClockFeaturesKHR calloc()
Returns a newVkPhysicalDeviceShaderClockFeaturesKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceShaderClockFeaturesKHR create()
Returns a newVkPhysicalDeviceShaderClockFeaturesKHRinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceShaderClockFeaturesKHR create(long address)
Returns a newVkPhysicalDeviceShaderClockFeaturesKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceShaderClockFeaturesKHR createSafe(long address)
-
malloc
public static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceShaderClockFeaturesKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceShaderClockFeaturesKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer create(int capacity)
Returns a newVkPhysicalDeviceShaderClockFeaturesKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceShaderClockFeaturesKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceShaderClockFeaturesKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderClockFeaturesKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceShaderClockFeaturesKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderClockFeaturesKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderClockFeaturesKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderClockFeaturesKHR.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().
-
nshaderSubgroupClock
public static int nshaderSubgroupClock(long struct)
Unsafe version ofshaderSubgroupClock().
-
nshaderDeviceClock
public static int nshaderDeviceClock(long struct)
Unsafe version ofshaderDeviceClock().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nshaderSubgroupClock
public static void nshaderSubgroupClock(long struct, int value)Unsafe version ofshaderSubgroupClock.
-
nshaderDeviceClock
public static void nshaderDeviceClock(long struct, int value)Unsafe version ofshaderDeviceClock.
-
-