public class VkPhysicalDeviceShaderCorePropertiesAMD
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If the VkPhysicalDeviceShaderCorePropertiesAMD structure is included in the pNext chain of VkPhysicalDeviceProperties2, it is filled with the implementation-dependent limits.
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.shaderEngineCount – an unsigned integer value indicating the number of shader engines found inside the shader core of the physical device.shaderArraysPerEngineCount – an unsigned integer value indicating the number of shader arrays inside a shader engine. Each shader array has its own scan converter, set of compute units, and a render back end (color and depth buffers). Shader arrays within a shader engine share shader processor input (wave launcher) and shader export (export buffer) units. Currently, a shader engine can have one or two shader arrays.computeUnitsPerShaderArray – an unsigned integer value indicating the physical number of compute units within a shader array. The active number of compute units in a shader array may be lower. A compute unit houses a set of SIMDs along with a sequencer module and a local data store.simdPerComputeUnit – an unsigned integer value indicating the number of SIMDs inside a compute unit. Each SIMD processes a single instruction at a time.wavefrontSize – an unsigned integer value indicating the maximum size of a subgroup.sgprsPerSimd – an unsigned integer value indicating the number of physical Scalar General Purpose Registers (SGPRs) per SIMD.minSgprAllocation – an unsigned integer value indicating the minimum number of SGPRs allocated for a wave.maxSgprAllocation – an unsigned integer value indicating the maximum number of SGPRs allocated for a wave.sgprAllocationGranularity – an unsigned integer value indicating the granularity of SGPR allocation for a wave.vgprsPerSimd – an unsigned integer value indicating the number of physical Vector General Purpose Registers (VGPRs) per SIMD.minVgprAllocation – an unsigned integer value indicating the minimum number of VGPRs allocated for a wave.maxVgprAllocation – an unsigned integer value indicating the maximum number of VGPRs allocated for a wave.vgprAllocationGranularity – an unsigned integer value indicating the granularity of VGPR allocation for a wave.
struct VkPhysicalDeviceShaderCorePropertiesAMD {
VkStructureType sType;
void * pNext;
uint32_t shaderEngineCount;
uint32_t shaderArraysPerEngineCount;
uint32_t computeUnitsPerShaderArray;
uint32_t simdPerComputeUnit;
uint32_t wavefrontsPerSimd;
uint32_t wavefrontSize;
uint32_t sgprsPerSimd;
uint32_t minSgprAllocation;
uint32_t maxSgprAllocation;
uint32_t sgprAllocationGranularity;
uint32_t vgprsPerSimd;
uint32_t minVgprAllocation;
uint32_t maxVgprAllocation;
uint32_t vgprAllocationGranularity;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceShaderCorePropertiesAMD.Buffer
An array of
VkPhysicalDeviceShaderCorePropertiesAMD structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COMPUTEUNITSPERSHADERARRAY
The struct member offsets.
|
static int |
MAXSGPRALLOCATION
The struct member offsets.
|
static int |
MAXVGPRALLOCATION
The struct member offsets.
|
static int |
MINSGPRALLOCATION
The struct member offsets.
|
static int |
MINVGPRALLOCATION
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SGPRALLOCATIONGRANULARITY
The struct member offsets.
|
static int |
SGPRSPERSIMD
The struct member offsets.
|
static int |
SHADERARRAYSPERENGINECOUNT
The struct member offsets.
|
static int |
SHADERENGINECOUNT
The struct member offsets.
|
static int |
SIMDPERCOMPUTEUNIT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
VGPRALLOCATIONGRANULARITY
The struct member offsets.
|
static int |
VGPRSPERSIMD
The struct member offsets.
|
static int |
WAVEFRONTSIZE
The struct member offsets.
|
static int |
WAVEFRONTSPERSIMD
The struct member offsets.
|
| Constructor and Description |
|---|
VkPhysicalDeviceShaderCorePropertiesAMD(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceShaderCorePropertiesAMD instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceShaderCorePropertiesAMD |
calloc()
Returns a new
VkPhysicalDeviceShaderCorePropertiesAMD instance allocated with memCalloc. |
static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceShaderCorePropertiesAMD.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceShaderCorePropertiesAMD |
callocStack()
Returns a new
VkPhysicalDeviceShaderCorePropertiesAMD instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceShaderCorePropertiesAMD.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceShaderCorePropertiesAMD.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceShaderCorePropertiesAMD |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceShaderCorePropertiesAMD instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
computeUnitsPerShaderArray()
Returns the value of the
computeUnitsPerShaderArray field. |
static VkPhysicalDeviceShaderCorePropertiesAMD |
create()
Returns a new
VkPhysicalDeviceShaderCorePropertiesAMD instance allocated with BufferUtils. |
static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceShaderCorePropertiesAMD.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceShaderCorePropertiesAMD |
create(long address)
Returns a new
VkPhysicalDeviceShaderCorePropertiesAMD instance for the specified memory address. |
static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceShaderCorePropertiesAMD.Buffer instance at the specified memory. |
static VkPhysicalDeviceShaderCorePropertiesAMD |
createSafe(long address)
|
static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer |
createSafe(long address,
int capacity)
|
static VkPhysicalDeviceShaderCorePropertiesAMD |
malloc()
Returns a new
VkPhysicalDeviceShaderCorePropertiesAMD instance allocated with memAlloc. |
static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceShaderCorePropertiesAMD.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceShaderCorePropertiesAMD |
mallocStack()
Returns a new
VkPhysicalDeviceShaderCorePropertiesAMD instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceShaderCorePropertiesAMD.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceShaderCorePropertiesAMD.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceShaderCorePropertiesAMD |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceShaderCorePropertiesAMD instance allocated on the specified MemoryStack. |
int |
maxSgprAllocation()
Returns the value of the
maxSgprAllocation field. |
int |
maxVgprAllocation()
Returns the value of the
maxVgprAllocation field. |
int |
minSgprAllocation()
Returns the value of the
minSgprAllocation field. |
int |
minVgprAllocation()
Returns the value of the
minVgprAllocation field. |
static int |
ncomputeUnitsPerShaderArray(long struct)
Unsafe version of
computeUnitsPerShaderArray(). |
static int |
nmaxSgprAllocation(long struct)
Unsafe version of
maxSgprAllocation(). |
static int |
nmaxVgprAllocation(long struct)
Unsafe version of
maxVgprAllocation(). |
static int |
nminSgprAllocation(long struct)
Unsafe version of
minSgprAllocation(). |
static int |
nminVgprAllocation(long struct)
Unsafe version of
minVgprAllocation(). |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsgprAllocationGranularity(long struct)
Unsafe version of
sgprAllocationGranularity(). |
static int |
nsgprsPerSimd(long struct)
Unsafe version of
sgprsPerSimd(). |
static int |
nshaderArraysPerEngineCount(long struct)
Unsafe version of
shaderArraysPerEngineCount(). |
static int |
nshaderEngineCount(long struct)
Unsafe version of
shaderEngineCount(). |
static int |
nsimdPerComputeUnit(long struct)
Unsafe version of
simdPerComputeUnit(). |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static int |
nvgprAllocationGranularity(long struct)
Unsafe version of
vgprAllocationGranularity(). |
static int |
nvgprsPerSimd(long struct)
Unsafe version of
vgprsPerSimd(). |
static int |
nwavefrontSize(long struct)
Unsafe version of
wavefrontSize(). |
static int |
nwavefrontsPerSimd(long struct)
Unsafe version of
wavefrontsPerSimd(). |
long |
pNext()
Returns the value of the
pNext field. |
VkPhysicalDeviceShaderCorePropertiesAMD |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPhysicalDeviceShaderCorePropertiesAMD |
set(int sType,
long pNext)
Initializes this struct with the specified values.
|
VkPhysicalDeviceShaderCorePropertiesAMD |
set(VkPhysicalDeviceShaderCorePropertiesAMD src)
Copies the specified struct data to this struct.
|
int |
sgprAllocationGranularity()
Returns the value of the
sgprAllocationGranularity field. |
int |
sgprsPerSimd()
Returns the value of the
sgprsPerSimd field. |
int |
shaderArraysPerEngineCount()
Returns the value of the
shaderArraysPerEngineCount field. |
int |
shaderEngineCount()
Returns the value of the
shaderEngineCount field. |
int |
simdPerComputeUnit()
Returns the value of the
simdPerComputeUnit field. |
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceShaderCorePropertiesAMD |
sType(int value)
Sets the specified value to the
sType field. |
int |
vgprAllocationGranularity()
Returns the value of the
vgprAllocationGranularity field. |
int |
vgprsPerSimd()
Returns the value of the
vgprsPerSimd field. |
int |
wavefrontSize()
Returns the value of the
wavefrontSize field. |
int |
wavefrontsPerSimd()
Returns the value of the
wavefrontsPerSimd 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 SHADERENGINECOUNT
public static final int SHADERARRAYSPERENGINECOUNT
public static final int COMPUTEUNITSPERSHADERARRAY
public static final int SIMDPERCOMPUTEUNIT
public static final int WAVEFRONTSPERSIMD
public static final int WAVEFRONTSIZE
public static final int SGPRSPERSIMD
public static final int MINSGPRALLOCATION
public static final int MAXSGPRALLOCATION
public static final int SGPRALLOCATIONGRANULARITY
public static final int VGPRSPERSIMD
public static final int MINVGPRALLOCATION
public static final int MAXVGPRALLOCATION
public static final int VGPRALLOCATIONGRANULARITY
public VkPhysicalDeviceShaderCorePropertiesAMD(java.nio.ByteBuffer container)
VkPhysicalDeviceShaderCorePropertiesAMD 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 int shaderEngineCount()
shaderEngineCount field.public int shaderArraysPerEngineCount()
shaderArraysPerEngineCount field.public int computeUnitsPerShaderArray()
computeUnitsPerShaderArray field.public int simdPerComputeUnit()
simdPerComputeUnit field.public int wavefrontsPerSimd()
wavefrontsPerSimd field.public int wavefrontSize()
wavefrontSize field.public int sgprsPerSimd()
sgprsPerSimd field.public int minSgprAllocation()
minSgprAllocation field.public int maxSgprAllocation()
maxSgprAllocation field.public int sgprAllocationGranularity()
sgprAllocationGranularity field.public int vgprsPerSimd()
vgprsPerSimd field.public int minVgprAllocation()
minVgprAllocation field.public int maxVgprAllocation()
maxVgprAllocation field.public int vgprAllocationGranularity()
vgprAllocationGranularity field.public VkPhysicalDeviceShaderCorePropertiesAMD sType(int value)
sType field.public VkPhysicalDeviceShaderCorePropertiesAMD pNext(long value)
pNext field.public VkPhysicalDeviceShaderCorePropertiesAMD set(int sType, long pNext)
public VkPhysicalDeviceShaderCorePropertiesAMD set(VkPhysicalDeviceShaderCorePropertiesAMD src)
src - the source structpublic static VkPhysicalDeviceShaderCorePropertiesAMD malloc()
VkPhysicalDeviceShaderCorePropertiesAMD instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceShaderCorePropertiesAMD calloc()
VkPhysicalDeviceShaderCorePropertiesAMD instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceShaderCorePropertiesAMD create()
VkPhysicalDeviceShaderCorePropertiesAMD instance allocated with BufferUtils.public static VkPhysicalDeviceShaderCorePropertiesAMD create(long address)
VkPhysicalDeviceShaderCorePropertiesAMD instance for the specified memory address.@Nullable public static VkPhysicalDeviceShaderCorePropertiesAMD createSafe(long address)
public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer malloc(int capacity)
VkPhysicalDeviceShaderCorePropertiesAMD.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer calloc(int capacity)
VkPhysicalDeviceShaderCorePropertiesAMD.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer create(int capacity)
VkPhysicalDeviceShaderCorePropertiesAMD.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer create(long address, int capacity)
VkPhysicalDeviceShaderCorePropertiesAMD.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceShaderCorePropertiesAMD mallocStack()
VkPhysicalDeviceShaderCorePropertiesAMD instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceShaderCorePropertiesAMD callocStack()
VkPhysicalDeviceShaderCorePropertiesAMD instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceShaderCorePropertiesAMD mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceShaderCorePropertiesAMD instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceShaderCorePropertiesAMD callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceShaderCorePropertiesAMD instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer mallocStack(int capacity)
VkPhysicalDeviceShaderCorePropertiesAMD.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer callocStack(int capacity)
VkPhysicalDeviceShaderCorePropertiesAMD.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceShaderCorePropertiesAMD.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceShaderCorePropertiesAMD.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 nshaderEngineCount(long struct)
shaderEngineCount().public static int nshaderArraysPerEngineCount(long struct)
shaderArraysPerEngineCount().public static int ncomputeUnitsPerShaderArray(long struct)
computeUnitsPerShaderArray().public static int nsimdPerComputeUnit(long struct)
simdPerComputeUnit().public static int nwavefrontsPerSimd(long struct)
wavefrontsPerSimd().public static int nwavefrontSize(long struct)
wavefrontSize().public static int nsgprsPerSimd(long struct)
sgprsPerSimd().public static int nminSgprAllocation(long struct)
minSgprAllocation().public static int nmaxSgprAllocation(long struct)
maxSgprAllocation().public static int nsgprAllocationGranularity(long struct)
sgprAllocationGranularity().public static int nvgprsPerSimd(long struct)
vgprsPerSimd().public static int nminVgprAllocation(long struct)
minVgprAllocation().public static int nmaxVgprAllocation(long struct)
maxVgprAllocation().public static int nvgprAllocationGranularity(long struct)
vgprAllocationGranularity().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.Copyright LWJGL. All Rights Reserved. License terms.