public class VkPhysicalDeviceShaderClockFeaturesKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If the VkPhysicalDeviceShaderClockFeaturesKHR structure is included in the pNext chain of VkPhysicalDeviceFeatures2, it is filled with values indicating whether each feature is supported. VkPhysicalDeviceShaderClockFeaturesKHR can also be included in the pNext chain of VkDeviceCreateInfo to enable the features.
sType must be STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CLOCK_FEATURES_KHRsType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.shaderSubgroupClock – indicates whether shaders can support Subgroup scoped clock reads.shaderDeviceClock – indicates whether shaders can support Device scoped clock reads.
struct VkPhysicalDeviceShaderClockFeaturesKHR {
VkStructureType sType;
void * pNext;
VkBool32 shaderSubgroupClock;
VkBool32 shaderDeviceClock;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceShaderClockFeaturesKHR.Buffer
An array of
VkPhysicalDeviceShaderClockFeaturesKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SHADERDEVICECLOCK
The struct member offsets.
|
static int |
SHADERSUBGROUPCLOCK
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPhysicalDeviceShaderClockFeaturesKHR(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceShaderClockFeaturesKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceShaderClockFeaturesKHR |
calloc()
Returns a new
VkPhysicalDeviceShaderClockFeaturesKHR instance allocated with memCalloc. |
static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceShaderClockFeaturesKHR.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceShaderClockFeaturesKHR |
callocStack()
Returns a new
VkPhysicalDeviceShaderClockFeaturesKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceShaderClockFeaturesKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceShaderClockFeaturesKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceShaderClockFeaturesKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceShaderClockFeaturesKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceShaderClockFeaturesKHR |
create()
Returns a new
VkPhysicalDeviceShaderClockFeaturesKHR instance allocated with BufferUtils. |
static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceShaderClockFeaturesKHR.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceShaderClockFeaturesKHR |
create(long address)
Returns a new
VkPhysicalDeviceShaderClockFeaturesKHR instance for the specified memory address. |
static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceShaderClockFeaturesKHR.Buffer instance at the specified memory. |
static VkPhysicalDeviceShaderClockFeaturesKHR |
createSafe(long address)
|
static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer |
createSafe(long address,
int capacity)
|
static VkPhysicalDeviceShaderClockFeaturesKHR |
malloc()
Returns a new
VkPhysicalDeviceShaderClockFeaturesKHR instance allocated with memAlloc. |
static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceShaderClockFeaturesKHR.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceShaderClockFeaturesKHR |
mallocStack()
Returns a new
VkPhysicalDeviceShaderClockFeaturesKHR instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceShaderClockFeaturesKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceShaderClockFeaturesKHR.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceShaderClockFeaturesKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceShaderClockFeaturesKHR instance allocated on the specified MemoryStack. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nshaderDeviceClock(long struct)
Unsafe version of
shaderDeviceClock(). |
static void |
nshaderDeviceClock(long struct,
int value)
Unsafe version of
shaderDeviceClock. |
static int |
nshaderSubgroupClock(long struct)
Unsafe version of
shaderSubgroupClock(). |
static void |
nshaderSubgroupClock(long struct,
int value)
Unsafe version of
shaderSubgroupClock. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkPhysicalDeviceShaderClockFeaturesKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPhysicalDeviceShaderClockFeaturesKHR |
set(int sType,
long pNext,
boolean shaderSubgroupClock,
boolean shaderDeviceClock)
Initializes this struct with the specified values.
|
VkPhysicalDeviceShaderClockFeaturesKHR |
set(VkPhysicalDeviceShaderClockFeaturesKHR src)
Copies the specified struct data to this struct.
|
boolean |
shaderDeviceClock()
Returns the value of the
shaderDeviceClock field. |
VkPhysicalDeviceShaderClockFeaturesKHR |
shaderDeviceClock(boolean value)
Sets the specified value to the
shaderDeviceClock field. |
boolean |
shaderSubgroupClock()
Returns the value of the
shaderSubgroupClock field. |
VkPhysicalDeviceShaderClockFeaturesKHR |
shaderSubgroupClock(boolean value)
Sets the specified value to the
shaderSubgroupClock field. |
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceShaderClockFeaturesKHR |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int SHADERSUBGROUPCLOCK
public static final int SHADERDEVICECLOCK
public VkPhysicalDeviceShaderClockFeaturesKHR(java.nio.ByteBuffer container)
VkPhysicalDeviceShaderClockFeaturesKHR instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public boolean shaderSubgroupClock()
shaderSubgroupClock field.public boolean shaderDeviceClock()
shaderDeviceClock field.public VkPhysicalDeviceShaderClockFeaturesKHR sType(int value)
sType field.public VkPhysicalDeviceShaderClockFeaturesKHR pNext(long value)
pNext field.public VkPhysicalDeviceShaderClockFeaturesKHR shaderSubgroupClock(boolean value)
shaderSubgroupClock field.public VkPhysicalDeviceShaderClockFeaturesKHR shaderDeviceClock(boolean value)
shaderDeviceClock field.public VkPhysicalDeviceShaderClockFeaturesKHR set(int sType, long pNext, boolean shaderSubgroupClock, boolean shaderDeviceClock)
public VkPhysicalDeviceShaderClockFeaturesKHR set(VkPhysicalDeviceShaderClockFeaturesKHR src)
src - the source structpublic static VkPhysicalDeviceShaderClockFeaturesKHR malloc()
VkPhysicalDeviceShaderClockFeaturesKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceShaderClockFeaturesKHR calloc()
VkPhysicalDeviceShaderClockFeaturesKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceShaderClockFeaturesKHR create()
VkPhysicalDeviceShaderClockFeaturesKHR instance allocated with BufferUtils.public static VkPhysicalDeviceShaderClockFeaturesKHR create(long address)
VkPhysicalDeviceShaderClockFeaturesKHR instance for the specified memory address.@Nullable public static VkPhysicalDeviceShaderClockFeaturesKHR createSafe(long address)
public static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer malloc(int capacity)
VkPhysicalDeviceShaderClockFeaturesKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer calloc(int capacity)
VkPhysicalDeviceShaderClockFeaturesKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer create(int capacity)
VkPhysicalDeviceShaderClockFeaturesKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer create(long address, int capacity)
VkPhysicalDeviceShaderClockFeaturesKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceShaderClockFeaturesKHR mallocStack()
VkPhysicalDeviceShaderClockFeaturesKHR instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceShaderClockFeaturesKHR callocStack()
VkPhysicalDeviceShaderClockFeaturesKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceShaderClockFeaturesKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceShaderClockFeaturesKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceShaderClockFeaturesKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceShaderClockFeaturesKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer mallocStack(int capacity)
VkPhysicalDeviceShaderClockFeaturesKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer callocStack(int capacity)
VkPhysicalDeviceShaderClockFeaturesKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceShaderClockFeaturesKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceShaderClockFeaturesKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceShaderClockFeaturesKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nshaderSubgroupClock(long struct)
shaderSubgroupClock().public static int nshaderDeviceClock(long struct)
shaderDeviceClock().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nshaderSubgroupClock(long struct,
int value)
shaderSubgroupClock.public static void nshaderDeviceClock(long struct,
int value)
shaderDeviceClock.Copyright LWJGL. All Rights Reserved. License terms.