Package org.lwjgl.vulkan
Class VkPhysicalDeviceShaderCoreProperties2AMD
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceShaderCoreProperties2AMD
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkPhysicalDeviceShaderCoreProperties2AMD extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure describing shader core properties that can be supported by an implementation.Description
If the
VkPhysicalDeviceShaderCoreProperties2AMD
structure is included in thepNext
chain ofVkPhysicalDeviceProperties2
, it is filled with the implementation-dependent limits.Valid Usage (Implicit)
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.shaderCoreFeatures
– a bitmask ofVkShaderCorePropertiesFlagBitsAMD
indicating the set of features supported by the shader core.activeComputeUnitCount
– an unsigned integer value indicating the number of compute units that have been enabled.
Layout
struct VkPhysicalDeviceShaderCoreProperties2AMD { VkStructureType sType; void * pNext; VkShaderCorePropertiesFlagsAMD shaderCoreFeatures; uint32_t activeComputeUnitCount; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPhysicalDeviceShaderCoreProperties2AMD.Buffer
An array ofVkPhysicalDeviceShaderCoreProperties2AMD
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ACTIVECOMPUTEUNITCOUNT
The struct member offsets.static int
ALIGNOF
The struct alignment in bytes.static int
PNEXT
SHADERCOREFEATURESThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceShaderCoreProperties2AMD(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceShaderCoreProperties2AMD
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
activeComputeUnitCount()
Returns the value of theactiveComputeUnitCount
field.static VkPhysicalDeviceShaderCoreProperties2AMD
calloc()
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD
instance allocated withmemCalloc
.static VkPhysicalDeviceShaderCoreProperties2AMD.Buffer
calloc(int capacity)
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD.Buffer
instance allocated withmemCalloc
.static VkPhysicalDeviceShaderCoreProperties2AMD
callocStack()
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceShaderCoreProperties2AMD.Buffer
callocStack(int capacity)
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceShaderCoreProperties2AMD.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceShaderCoreProperties2AMD
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceShaderCoreProperties2AMD
create()
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD
instance allocated withBufferUtils
.static VkPhysicalDeviceShaderCoreProperties2AMD.Buffer
create(int capacity)
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD.Buffer
instance allocated withBufferUtils
.static VkPhysicalDeviceShaderCoreProperties2AMD
create(long address)
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD
instance for the specified memory address.static VkPhysicalDeviceShaderCoreProperties2AMD.Buffer
create(long address, int capacity)
Create aVkPhysicalDeviceShaderCoreProperties2AMD.Buffer
instance at the specified memory.static VkPhysicalDeviceShaderCoreProperties2AMD
createSafe(long address)
static VkPhysicalDeviceShaderCoreProperties2AMD.Buffer
createSafe(long address, int capacity)
static VkPhysicalDeviceShaderCoreProperties2AMD
malloc()
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD
instance allocated withmemAlloc
.static VkPhysicalDeviceShaderCoreProperties2AMD.Buffer
malloc(int capacity)
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD.Buffer
instance allocated withmemAlloc
.static VkPhysicalDeviceShaderCoreProperties2AMD
mallocStack()
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceShaderCoreProperties2AMD.Buffer
mallocStack(int capacity)
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD.Buffer
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceShaderCoreProperties2AMD.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceShaderCoreProperties2AMD
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD
instance allocated on the specifiedMemoryStack
.static int
nactiveComputeUnitCount(long struct)
Unsafe version ofactiveComputeUnitCount()
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nshaderCoreFeatures(long struct)
Unsafe version ofshaderCoreFeatures()
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
pNext()
Returns the value of thepNext
field.VkPhysicalDeviceShaderCoreProperties2AMD
pNext(long value)
Sets the specified value to thepNext
field.VkPhysicalDeviceShaderCoreProperties2AMD
set(int sType, long pNext)
Initializes this struct with the specified values.VkPhysicalDeviceShaderCoreProperties2AMD
set(VkPhysicalDeviceShaderCoreProperties2AMD src)
Copies the specified struct data to this struct.int
shaderCoreFeatures()
Returns the value of theshaderCoreFeatures
field.int
sizeof()
int
sType()
Returns the value of thesType
field.VkPhysicalDeviceShaderCoreProperties2AMD
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceShaderCoreProperties2AMD
public VkPhysicalDeviceShaderCoreProperties2AMD(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceShaderCoreProperties2AMD
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
shaderCoreFeatures
public int shaderCoreFeatures()
Returns the value of theshaderCoreFeatures
field.
-
activeComputeUnitCount
public int activeComputeUnitCount()
Returns the value of theactiveComputeUnitCount
field.
-
sType
public VkPhysicalDeviceShaderCoreProperties2AMD sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPhysicalDeviceShaderCoreProperties2AMD pNext(long value)
Sets the specified value to thepNext
field.
-
set
public VkPhysicalDeviceShaderCoreProperties2AMD set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceShaderCoreProperties2AMD set(VkPhysicalDeviceShaderCoreProperties2AMD src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceShaderCoreProperties2AMD malloc()
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceShaderCoreProperties2AMD calloc()
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceShaderCoreProperties2AMD create()
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceShaderCoreProperties2AMD create(long address)
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD
instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceShaderCoreProperties2AMD createSafe(long address)
-
malloc
public static VkPhysicalDeviceShaderCoreProperties2AMD.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceShaderCoreProperties2AMD.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceShaderCoreProperties2AMD.Buffer create(int capacity)
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceShaderCoreProperties2AMD.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceShaderCoreProperties2AMD.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceShaderCoreProperties2AMD.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceShaderCoreProperties2AMD mallocStack()
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceShaderCoreProperties2AMD callocStack()
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceShaderCoreProperties2AMD mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceShaderCoreProperties2AMD callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceShaderCoreProperties2AMD.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceShaderCoreProperties2AMD.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceShaderCoreProperties2AMD.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceShaderCoreProperties2AMD.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderCoreProperties2AMD.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-
nshaderCoreFeatures
public static int nshaderCoreFeatures(long struct)
Unsafe version ofshaderCoreFeatures()
.
-
nactiveComputeUnitCount
public static int nactiveComputeUnitCount(long struct)
Unsafe version ofactiveComputeUnitCount()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
-