Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkPhysicalDeviceShaderCorePropertiesAMD

extends Struct<VkPhysicalDeviceShaderCorePropertiesAMD>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure describing shader core properties that can be supported by an implementation.
Description

If the VkPhysicalDeviceShaderCorePropertiesAMD structure is included in the pNext chain of the VkPhysicalDeviceProperties2 structure passed to GetPhysicalDeviceProperties2, it is filled in with each corresponding implementation-dependent property.

Valid Usage (Implicit)

Layout


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;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
COMPUTEUNITSPERSHADERARRAY

The struct member offsets.

public static final int
MAXSGPRALLOCATION

The struct member offsets.

public static final int
MAXVGPRALLOCATION

The struct member offsets.

public static final int
MINSGPRALLOCATION

The struct member offsets.

public static final int
MINVGPRALLOCATION

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
SGPRALLOCATIONGRANULARITY

The struct member offsets.

public static final int
SGPRSPERSIMD

The struct member offsets.

public static final int
SHADERARRAYSPERENGINECOUNT

The struct member offsets.

public static final int
SHADERENGINECOUNT

The struct member offsets.

public static final int
SIMDPERCOMPUTEUNIT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STYPE

The struct member offsets.

public static final int
VGPRALLOCATIONGRANULARITY

The struct member offsets.

public static final int
VGPRSPERSIMD

The struct member offsets.

public static final int
WAVEFRONTSIZE

The struct member offsets.

public static final int
WAVEFRONTSPERSIMD

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
public
VkPhysicalDeviceShaderCorePropertiesAMD(ByteBuffer container)

Creates a VkPhysicalDeviceShaderCorePropertiesAMD instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static VkPhysicalDeviceShaderCorePropertiesAMD
calloc()

Returns a new VkPhysicalDeviceShaderCorePropertiesAMD instance allocated with memCalloc.

public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkPhysicalDeviceShaderCorePropertiesAMD.Buffer instance allocated with memCalloc.

public static VkPhysicalDeviceShaderCorePropertiesAMD
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkPhysicalDeviceShaderCorePropertiesAMD instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkPhysicalDeviceShaderCorePropertiesAMD.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkPhysicalDeviceShaderCorePropertiesAMD
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkPhysicalDeviceShaderCorePropertiesAMD
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public int
computeUnitsPerShaderArray()

an unsigned integer value indicating the physical number of compute units within a shader array.

protected VkPhysicalDeviceShaderCorePropertiesAMD
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkPhysicalDeviceShaderCorePropertiesAMD
create()

Returns a new VkPhysicalDeviceShaderCorePropertiesAMD instance allocated with BufferUtils.

public static VkPhysicalDeviceShaderCorePropertiesAMD
create(long address)

Returns a new VkPhysicalDeviceShaderCorePropertiesAMD instance for the specified memory address.

public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkPhysicalDeviceShaderCorePropertiesAMD.Buffer instance allocated with BufferUtils.

public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkPhysicalDeviceShaderCorePropertiesAMD.Buffer instance at the specified memory.

public static VkPhysicalDeviceShaderCorePropertiesAMD
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public static VkPhysicalDeviceShaderCorePropertiesAMD
malloc()

Returns a new VkPhysicalDeviceShaderCorePropertiesAMD instance allocated with memAlloc.

public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkPhysicalDeviceShaderCorePropertiesAMD.Buffer instance allocated with memAlloc.

public static VkPhysicalDeviceShaderCorePropertiesAMD
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkPhysicalDeviceShaderCorePropertiesAMD instance allocated on the specified MemoryStack.

public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkPhysicalDeviceShaderCorePropertiesAMD.Buffer instance allocated on the specified MemoryStack.

public static VkPhysicalDeviceShaderCorePropertiesAMD
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static VkPhysicalDeviceShaderCorePropertiesAMD
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static VkPhysicalDeviceShaderCorePropertiesAMD.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public int
maxSgprAllocation()

an unsigned integer value indicating the maximum number of SGPRs allocated for a wave.

public int
maxVgprAllocation()

an unsigned integer value indicating the maximum number of VGPRs allocated for a wave.

public int
minSgprAllocation()

an unsigned integer value indicating the minimum number of SGPRs allocated for a wave.

public int
minVgprAllocation()

an unsigned integer value indicating the minimum number of VGPRs allocated for a wave.

public static int
public static int
nmaxSgprAllocation(long struct)

Unsafe version of maxSgprAllocation.

public static int
nmaxVgprAllocation(long struct)

Unsafe version of maxVgprAllocation.

public static int
nminSgprAllocation(long struct)

Unsafe version of minSgprAllocation.

public static int
nminVgprAllocation(long struct)

Unsafe version of minVgprAllocation.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static int
public static int
nsgprsPerSimd(long struct)

Unsafe version of sgprsPerSimd.

public static int
public static int
nshaderEngineCount(long struct)

Unsafe version of shaderEngineCount.

public static int
nsimdPerComputeUnit(long struct)

Unsafe version of simdPerComputeUnit.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public static int
public static int
nvgprsPerSimd(long struct)

Unsafe version of vgprsPerSimd.

public static int
nwavefrontSize(long struct)

Unsafe version of wavefrontSize.

public static int
nwavefrontsPerSimd(long struct)

Unsafe version of wavefrontsPerSimd.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkPhysicalDeviceShaderCorePropertiesAMD
pNext(long value)

Sets the specified value to the pNext field.

public VkPhysicalDeviceShaderCorePropertiesAMD
set(int sType, long pNext)

Initializes this struct with the specified values.

public VkPhysicalDeviceShaderCorePropertiesAMD

Returns:

this struct
set
(VkPhysicalDeviceShaderCorePropertiesAMD
the source struct
src
)

Copies the specified struct data to this struct.

public int
sgprAllocationGranularity()

an unsigned integer value indicating the granularity of SGPR allocation for a wave.

public int
sgprsPerSimd()

an unsigned integer value indicating the number of physical Scalar General-Purpose Registers (SGPRs) per SIMD.

public int
shaderArraysPerEngineCount()

an unsigned integer value indicating the number of shader arrays inside a shader engine.

public int
shaderEngineCount()

an unsigned integer value indicating the number of shader engines found inside the shader core of the physical device.

public int
simdPerComputeUnit()

an unsigned integer value indicating the number of SIMDs inside a compute unit.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
sType()

a VkStructureType value identifying this structure.

public VkPhysicalDeviceShaderCorePropertiesAMD
sType(int value)

Sets the specified value to the sType field.

public VkPhysicalDeviceShaderCorePropertiesAMD
public int
vgprAllocationGranularity()

an unsigned integer value indicating the granularity of VGPR allocation for a wave.

public int
vgprsPerSimd()

an unsigned integer value indicating the number of physical Vector General-Purpose Registers (VGPRs) per SIMD.

public int
wavefrontSize()

an unsigned integer value indicating the maximum size of a subgroup.

public int

Returns:

the value of the wavefrontsPerSimd field.
wavefrontsPerSimd
()

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate