Package org.lwjgl.vulkan
Class VkPhysicalDeviceShaderCorePropertiesAMD
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceShaderCorePropertiesAMD
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceShaderCorePropertiesAMD extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing shader core properties that can be supported by an implementation.Description
If the
VkPhysicalDeviceShaderCorePropertiesAMDstructure is included in thepNextchain of theVkPhysicalDeviceProperties2structure passed toGetPhysicalDeviceProperties2, it is filled in with each corresponding implementation-dependent property.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceShaderCorePropertiesAMD { VkStructureTypesType(); void *pNext(); uint32_tshaderEngineCount(); uint32_tshaderArraysPerEngineCount(); uint32_tcomputeUnitsPerShaderArray(); uint32_tsimdPerComputeUnit(); uint32_t wavefrontsPerSimd; uint32_twavefrontSize(); uint32_tsgprsPerSimd(); uint32_tminSgprAllocation(); uint32_tmaxSgprAllocation(); uint32_tsgprAllocationGranularity(); uint32_tvgprsPerSimd(); uint32_tminVgprAllocation(); uint32_tmaxVgprAllocation(); uint32_tvgprAllocationGranularity(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceShaderCorePropertiesAMD.BufferAn array ofVkPhysicalDeviceShaderCorePropertiesAMDstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOMPUTEUNITSPERSHADERARRAY
MAXSGPRALLOCATION
MAXVGPRALLOCATION
MINSGPRALLOCATION
MINVGPRALLOCATION
PNEXT
SGPRALLOCATIONGRANULARITY
SGPRSPERSIMD
SHADERARRAYSPERENGINECOUNT
SHADERENGINECOUNT
SIMDPERCOMPUTEUNITThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
VGPRALLOCATIONGRANULARITY
VGPRSPERSIMD
WAVEFRONTSIZE
WAVEFRONTSPERSIMDThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceShaderCorePropertiesAMD(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceShaderCorePropertiesAMDinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkPhysicalDeviceShaderCorePropertiesAMDcalloc()Returns a newVkPhysicalDeviceShaderCorePropertiesAMDinstance allocated withmemCalloc.static VkPhysicalDeviceShaderCorePropertiesAMD.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceShaderCorePropertiesAMD.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceShaderCorePropertiesAMD.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderCorePropertiesAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShaderCorePropertiesAMDcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderCorePropertiesAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceShaderCorePropertiesAMDcallocStack()Deprecated.static VkPhysicalDeviceShaderCorePropertiesAMD.BuffercallocStack(int capacity)Deprecated.static VkPhysicalDeviceShaderCorePropertiesAMD.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceShaderCorePropertiesAMDcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intcomputeUnitsPerShaderArray()an unsigned integer value indicating the physical number of compute units within a shader array.static VkPhysicalDeviceShaderCorePropertiesAMDcreate()Returns a newVkPhysicalDeviceShaderCorePropertiesAMDinstance allocated withBufferUtils.static VkPhysicalDeviceShaderCorePropertiesAMD.Buffercreate(int capacity)Returns a newVkPhysicalDeviceShaderCorePropertiesAMD.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceShaderCorePropertiesAMDcreate(long address)Returns a newVkPhysicalDeviceShaderCorePropertiesAMDinstance for the specified memory address.static VkPhysicalDeviceShaderCorePropertiesAMD.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceShaderCorePropertiesAMD.Bufferinstance at the specified memory.static VkPhysicalDeviceShaderCorePropertiesAMDcreateSafe(long address)static VkPhysicalDeviceShaderCorePropertiesAMD.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceShaderCorePropertiesAMDmalloc()Returns a newVkPhysicalDeviceShaderCorePropertiesAMDinstance allocated withmemAlloc.static VkPhysicalDeviceShaderCorePropertiesAMD.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceShaderCorePropertiesAMD.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceShaderCorePropertiesAMD.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderCorePropertiesAMD.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceShaderCorePropertiesAMDmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceShaderCorePropertiesAMDinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceShaderCorePropertiesAMDmallocStack()Deprecated.static VkPhysicalDeviceShaderCorePropertiesAMD.BuffermallocStack(int capacity)Deprecated.static VkPhysicalDeviceShaderCorePropertiesAMD.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceShaderCorePropertiesAMDmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intmaxSgprAllocation()an unsigned integer value indicating the maximum number of SGPRs allocated for a wave.intmaxVgprAllocation()an unsigned integer value indicating the maximum number of VGPRs allocated for a wave.intminSgprAllocation()an unsigned integer value indicating the minimum number of SGPRs allocated for a wave.intminVgprAllocation()an unsigned integer value indicating the minimum number of VGPRs allocated for a wave.static intncomputeUnitsPerShaderArray(long struct)Unsafe version ofcomputeUnitsPerShaderArray().static intnmaxSgprAllocation(long struct)Unsafe version ofmaxSgprAllocation().static intnmaxVgprAllocation(long struct)Unsafe version ofmaxVgprAllocation().static intnminSgprAllocation(long struct)Unsafe version ofminSgprAllocation().static intnminVgprAllocation(long struct)Unsafe version ofminVgprAllocation().static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsgprAllocationGranularity(long struct)Unsafe version ofsgprAllocationGranularity().static intnsgprsPerSimd(long struct)Unsafe version ofsgprsPerSimd().static intnshaderArraysPerEngineCount(long struct)Unsafe version ofshaderArraysPerEngineCount().static intnshaderEngineCount(long struct)Unsafe version ofshaderEngineCount().static intnsimdPerComputeUnit(long struct)Unsafe version ofsimdPerComputeUnit().static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnvgprAllocationGranularity(long struct)Unsafe version ofvgprAllocationGranularity().static intnvgprsPerSimd(long struct)Unsafe version ofvgprsPerSimd().static intnwavefrontSize(long struct)Unsafe version ofwavefrontSize().static intnwavefrontsPerSimd(long struct)Unsafe version ofwavefrontsPerSimd().longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceShaderCorePropertiesAMDpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceShaderCorePropertiesAMDset(int sType, long pNext)Initializes this struct with the specified values.VkPhysicalDeviceShaderCorePropertiesAMDset(VkPhysicalDeviceShaderCorePropertiesAMD src)Copies the specified struct data to this struct.intsgprAllocationGranularity()an unsigned integer value indicating the granularity of SGPR allocation for a wave.intsgprsPerSimd()an unsigned integer value indicating the number of physical Scalar General Purpose Registers (SGPRs) per SIMD.intshaderArraysPerEngineCount()an unsigned integer value indicating the number of shader arrays inside a shader engine.intshaderEngineCount()an unsigned integer value indicating the number of shader engines found inside the shader core of the physical device.intsimdPerComputeUnit()an unsigned integer value indicating the number of SIMDs inside a compute unit.intsizeof()intsType()the type of this structure.VkPhysicalDeviceShaderCorePropertiesAMDsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceShaderCorePropertiesAMDsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_AMDvalue to thesType()field.intvgprAllocationGranularity()an unsigned integer value indicating the granularity of VGPR allocation for a wave.intvgprsPerSimd()an unsigned integer value indicating the number of physical Vector General Purpose Registers (VGPRs) per SIMD.intwavefrontSize()an unsigned integer value indicating the maximum size of a subgroup.intwavefrontsPerSimd()
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
STYPE, PNEXT, SHADERENGINECOUNT, SHADERARRAYSPERENGINECOUNT, COMPUTEUNITSPERSHADERARRAY, SIMDPERCOMPUTEUNIT, WAVEFRONTSPERSIMD, WAVEFRONTSIZE, SGPRSPERSIMD, MINSGPRALLOCATION, MAXSGPRALLOCATION, SGPRALLOCATIONGRANULARITY, VGPRSPERSIMD, MINVGPRALLOCATION, MAXVGPRALLOCATION, VGPRALLOCATIONGRANULARITY
The struct member offsets.
-
-
Constructor Detail
-
VkPhysicalDeviceShaderCorePropertiesAMD
public VkPhysicalDeviceShaderCorePropertiesAMD(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceShaderCorePropertiesAMDinstance 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.
-
shaderEngineCount
public int shaderEngineCount()
an unsigned integer value indicating the number of shader engines found inside the shader core of the physical device.
-
shaderArraysPerEngineCount
public int 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 attachments). 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
public int 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
public int simdPerComputeUnit()
an unsigned integer value indicating the number of SIMDs inside a compute unit. Each SIMD processes a single instruction at a time.
-
wavefrontsPerSimd
public int wavefrontsPerSimd()
- Returns:
- the value of the
wavefrontsPerSimdfield.
-
wavefrontSize
public int wavefrontSize()
an unsigned integer value indicating the maximum size of a subgroup.
-
sgprsPerSimd
public int sgprsPerSimd()
an unsigned integer value indicating the number of physical Scalar General Purpose Registers (SGPRs) per SIMD.
-
minSgprAllocation
public int minSgprAllocation()
an unsigned integer value indicating the minimum number of SGPRs allocated for a wave.
-
maxSgprAllocation
public int maxSgprAllocation()
an unsigned integer value indicating the maximum number of SGPRs allocated for a wave.
-
sgprAllocationGranularity
public int sgprAllocationGranularity()
an unsigned integer value indicating the granularity of SGPR allocation for a wave.
-
vgprsPerSimd
public int vgprsPerSimd()
an unsigned integer value indicating the number of physical Vector General Purpose Registers (VGPRs) per SIMD.
-
minVgprAllocation
public int minVgprAllocation()
an unsigned integer value indicating the minimum number of VGPRs allocated for a wave.
-
maxVgprAllocation
public int maxVgprAllocation()
an unsigned integer value indicating the maximum number of VGPRs allocated for a wave.
-
vgprAllocationGranularity
public int vgprAllocationGranularity()
an unsigned integer value indicating the granularity of VGPR allocation for a wave.
-
sType
public VkPhysicalDeviceShaderCorePropertiesAMD sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceShaderCorePropertiesAMD sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_AMDvalue to thesType()field.
-
pNext
public VkPhysicalDeviceShaderCorePropertiesAMD pNext(long value)
Sets the specified value to thepNext()field.
-
set
public VkPhysicalDeviceShaderCorePropertiesAMD set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceShaderCorePropertiesAMD set(VkPhysicalDeviceShaderCorePropertiesAMD src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceShaderCorePropertiesAMD malloc()
Returns a newVkPhysicalDeviceShaderCorePropertiesAMDinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceShaderCorePropertiesAMD calloc()
Returns a newVkPhysicalDeviceShaderCorePropertiesAMDinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceShaderCorePropertiesAMD create()
Returns a newVkPhysicalDeviceShaderCorePropertiesAMDinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceShaderCorePropertiesAMD create(long address)
Returns a newVkPhysicalDeviceShaderCorePropertiesAMDinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceShaderCorePropertiesAMD createSafe(long address)
-
malloc
public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceShaderCorePropertiesAMD.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceShaderCorePropertiesAMD.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer create(int capacity)
Returns a newVkPhysicalDeviceShaderCorePropertiesAMD.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceShaderCorePropertiesAMD.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkPhysicalDeviceShaderCorePropertiesAMD mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceShaderCorePropertiesAMD callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceShaderCorePropertiesAMD mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceShaderCorePropertiesAMD callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPhysicalDeviceShaderCorePropertiesAMD malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderCorePropertiesAMDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceShaderCorePropertiesAMD calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderCorePropertiesAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderCorePropertiesAMD.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceShaderCorePropertiesAMD.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().
-
nshaderEngineCount
public static int nshaderEngineCount(long struct)
Unsafe version ofshaderEngineCount().
-
nshaderArraysPerEngineCount
public static int nshaderArraysPerEngineCount(long struct)
Unsafe version ofshaderArraysPerEngineCount().
-
ncomputeUnitsPerShaderArray
public static int ncomputeUnitsPerShaderArray(long struct)
Unsafe version ofcomputeUnitsPerShaderArray().
-
nsimdPerComputeUnit
public static int nsimdPerComputeUnit(long struct)
Unsafe version ofsimdPerComputeUnit().
-
nwavefrontsPerSimd
public static int nwavefrontsPerSimd(long struct)
Unsafe version ofwavefrontsPerSimd().
-
nwavefrontSize
public static int nwavefrontSize(long struct)
Unsafe version ofwavefrontSize().
-
nsgprsPerSimd
public static int nsgprsPerSimd(long struct)
Unsafe version ofsgprsPerSimd().
-
nminSgprAllocation
public static int nminSgprAllocation(long struct)
Unsafe version ofminSgprAllocation().
-
nmaxSgprAllocation
public static int nmaxSgprAllocation(long struct)
Unsafe version ofmaxSgprAllocation().
-
nsgprAllocationGranularity
public static int nsgprAllocationGranularity(long struct)
Unsafe version ofsgprAllocationGranularity().
-
nvgprsPerSimd
public static int nvgprsPerSimd(long struct)
Unsafe version ofvgprsPerSimd().
-
nminVgprAllocation
public static int nminVgprAllocation(long struct)
Unsafe version ofminVgprAllocation().
-
nmaxVgprAllocation
public static int nmaxVgprAllocation(long struct)
Unsafe version ofmaxVgprAllocation().
-
nvgprAllocationGranularity
public static int nvgprAllocationGranularity(long struct)
Unsafe version ofvgprAllocationGranularity().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-