Class VkDescriptorMappingSourceShaderRecordIndexEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkDescriptorMappingSourceShaderRecordIndexEXT>
org.lwjgl.vulkan.VkDescriptorMappingSourceShaderRecordIndexEXT
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class VkDescriptorMappingSourceShaderRecordIndexEXT
extends Struct<VkDescriptorMappingSourceShaderRecordIndexEXT>
implements NativeResource
struct VkDescriptorMappingSourceShaderRecordIndexEXT {
uint32_t heapOffset;
uint32_t shaderRecordOffset;
uint32_t heapIndexStride;
uint32_t heapArrayStride;
VkSamplerCreateInfo const * pEmbeddedSampler;
VkBool32 useCombinedImageSamplerIndex;
uint32_t samplerHeapOffset;
uint32_t samplerShaderRecordOffset;
uint32_t samplerHeapIndexStride;
uint32_t samplerHeapArrayStride;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkDescriptorMappingSourceShaderRecordIndexEXTstructs.Nested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCreates aVkDescriptorMappingSourceShaderRecordIndexEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkDescriptorMappingSourceShaderRecordIndexEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkDescriptorMappingSourceShaderRecordIndexEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkDescriptorMappingSourceShaderRecordIndexEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newVkDescriptorMappingSourceShaderRecordIndexEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkDescriptorMappingSourceShaderRecordIndexEXTinstance allocated withBufferUtils.create(int capacity) Returns a newVkDescriptorMappingSourceShaderRecordIndexEXT.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkDescriptorMappingSourceShaderRecordIndexEXTinstance for the specified memory address.create(long address, int capacity) Create aVkDescriptorMappingSourceShaderRecordIndexEXT.Bufferinstance at the specified memory.static @Nullable VkDescriptorMappingSourceShaderRecordIndexEXTcreateSafe(long address) static @Nullable VkDescriptorMappingSourceShaderRecordIndexEXT.BuffercreateSafe(long address, int capacity) intheapArrayStride(int value) Sets the specified value to theheapArrayStridefield.intheapIndexStride(int value) Sets the specified value to theheapIndexStridefield.intheapOffset(int value) Sets the specified value to theheapOffsetfield.malloc()Returns a newVkDescriptorMappingSourceShaderRecordIndexEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkDescriptorMappingSourceShaderRecordIndexEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkDescriptorMappingSourceShaderRecordIndexEXT.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newVkDescriptorMappingSourceShaderRecordIndexEXTinstance allocated on the specifiedMemoryStack.static intnheapArrayStride(long struct) Unsafe version ofheapArrayStride().static voidnheapArrayStride(long struct, int value) Unsafe version ofheapArrayStride.static intnheapIndexStride(long struct) Unsafe version ofheapIndexStride().static voidnheapIndexStride(long struct, int value) Unsafe version ofheapIndexStride.static intnheapOffset(long struct) Unsafe version ofheapOffset().static voidnheapOffset(long struct, int value) Unsafe version ofheapOffset.static @Nullable VkSamplerCreateInfonpEmbeddedSampler(long struct) Unsafe version ofpEmbeddedSampler().static voidnpEmbeddedSampler(long struct, @Nullable VkSamplerCreateInfo value) Unsafe version ofpEmbeddedSampler.static intnsamplerHeapArrayStride(long struct) Unsafe version ofsamplerHeapArrayStride().static voidnsamplerHeapArrayStride(long struct, int value) Unsafe version ofsamplerHeapArrayStride.static intnsamplerHeapIndexStride(long struct) Unsafe version ofsamplerHeapIndexStride().static voidnsamplerHeapIndexStride(long struct, int value) Unsafe version ofsamplerHeapIndexStride.static intnsamplerHeapOffset(long struct) Unsafe version ofsamplerHeapOffset().static voidnsamplerHeapOffset(long struct, int value) Unsafe version ofsamplerHeapOffset.static intnsamplerShaderRecordOffset(long struct) Unsafe version ofsamplerShaderRecordOffset().static voidnsamplerShaderRecordOffset(long struct, int value) Unsafe version ofsamplerShaderRecordOffset.static intnshaderRecordOffset(long struct) Unsafe version ofshaderRecordOffset().static voidnshaderRecordOffset(long struct, int value) Unsafe version ofshaderRecordOffset.static intnuseCombinedImageSamplerIndex(long struct) Unsafe version ofuseCombinedImageSamplerIndex().static voidnuseCombinedImageSamplerIndex(long struct, int value) Unsafe version ofuseCombinedImageSamplerIndex.@Nullable VkSamplerCreateInfopEmbeddedSampler(@Nullable VkSamplerCreateInfo value) Sets the address of the specifiedVkSamplerCreateInfoto thepEmbeddedSamplerfield.intsamplerHeapArrayStride(int value) Sets the specified value to thesamplerHeapArrayStridefield.intsamplerHeapIndexStride(int value) Sets the specified value to thesamplerHeapIndexStridefield.intsamplerHeapOffset(int value) Sets the specified value to thesamplerHeapOffsetfield.intsamplerShaderRecordOffset(int value) Sets the specified value to thesamplerShaderRecordOffsetfield.set(int heapOffset, int shaderRecordOffset, int heapIndexStride, int heapArrayStride, @Nullable VkSamplerCreateInfo pEmbeddedSampler, boolean useCombinedImageSamplerIndex, int samplerHeapOffset, int samplerShaderRecordOffset, int samplerHeapIndexStride, int samplerHeapArrayStride) Initializes this struct with the specified values.Copies the specified struct data to this struct.intshaderRecordOffset(int value) Sets the specified value to theshaderRecordOffsetfield.intsizeof()Returnssizeof(struct).booleanuseCombinedImageSamplerIndex(boolean value) Sets the specified value to theuseCombinedImageSamplerIndexfield.Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
HEAPOFFSET
public static final int HEAPOFFSETThe struct member offsets. -
SHADERRECORDOFFSET
public static final int SHADERRECORDOFFSETThe struct member offsets. -
HEAPINDEXSTRIDE
public static final int HEAPINDEXSTRIDEThe struct member offsets. -
HEAPARRAYSTRIDE
public static final int HEAPARRAYSTRIDEThe struct member offsets. -
PEMBEDDEDSAMPLER
public static final int PEMBEDDEDSAMPLERThe struct member offsets. -
USECOMBINEDIMAGESAMPLERINDEX
public static final int USECOMBINEDIMAGESAMPLERINDEXThe struct member offsets. -
SAMPLERHEAPOFFSET
public static final int SAMPLERHEAPOFFSETThe struct member offsets. -
SAMPLERSHADERRECORDOFFSET
public static final int SAMPLERSHADERRECORDOFFSETThe struct member offsets. -
SAMPLERHEAPINDEXSTRIDE
public static final int SAMPLERHEAPINDEXSTRIDEThe struct member offsets. -
SAMPLERHEAPARRAYSTRIDE
public static final int SAMPLERHEAPARRAYSTRIDEThe struct member offsets.
-
-
Constructor Details
-
VkDescriptorMappingSourceShaderRecordIndexEXT
Creates aVkDescriptorMappingSourceShaderRecordIndexEXTinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkDescriptorMappingSourceShaderRecordIndexEXT>
-
heapOffset
- Returns:
- the value of the
heapOffsetfield.
-
shaderRecordOffset
- Returns:
- the value of the
shaderRecordOffsetfield.
-
heapIndexStride
- Returns:
- the value of the
heapIndexStridefield.
-
heapArrayStride
- Returns:
- the value of the
heapArrayStridefield.
-
pEmbeddedSampler
- Returns:
- a
VkSamplerCreateInfoview of the struct pointed to by thepEmbeddedSamplerfield.
-
useCombinedImageSamplerIndex
- Returns:
- the value of the
useCombinedImageSamplerIndexfield.
-
samplerHeapOffset
- Returns:
- the value of the
samplerHeapOffsetfield.
-
samplerShaderRecordOffset
- Returns:
- the value of the
samplerShaderRecordOffsetfield.
-
samplerHeapIndexStride
- Returns:
- the value of the
samplerHeapIndexStridefield.
-
samplerHeapArrayStride
- Returns:
- the value of the
samplerHeapArrayStridefield.
-
heapOffset
Sets the specified value to theheapOffsetfield. -
shaderRecordOffset
public VkDescriptorMappingSourceShaderRecordIndexEXT shaderRecordOffset(@NativeType("uint32_t") int value) Sets the specified value to theshaderRecordOffsetfield. -
heapIndexStride
public VkDescriptorMappingSourceShaderRecordIndexEXT heapIndexStride(@NativeType("uint32_t") int value) Sets the specified value to theheapIndexStridefield. -
heapArrayStride
public VkDescriptorMappingSourceShaderRecordIndexEXT heapArrayStride(@NativeType("uint32_t") int value) Sets the specified value to theheapArrayStridefield. -
pEmbeddedSampler
public VkDescriptorMappingSourceShaderRecordIndexEXT pEmbeddedSampler(@NativeType("VkSamplerCreateInfo const *") @Nullable VkSamplerCreateInfo value) Sets the address of the specifiedVkSamplerCreateInfoto thepEmbeddedSamplerfield. -
useCombinedImageSamplerIndex
public VkDescriptorMappingSourceShaderRecordIndexEXT useCombinedImageSamplerIndex(@NativeType("VkBool32") boolean value) Sets the specified value to theuseCombinedImageSamplerIndexfield. -
samplerHeapOffset
public VkDescriptorMappingSourceShaderRecordIndexEXT samplerHeapOffset(@NativeType("uint32_t") int value) Sets the specified value to thesamplerHeapOffsetfield. -
samplerShaderRecordOffset
public VkDescriptorMappingSourceShaderRecordIndexEXT samplerShaderRecordOffset(@NativeType("uint32_t") int value) Sets the specified value to thesamplerShaderRecordOffsetfield. -
samplerHeapIndexStride
public VkDescriptorMappingSourceShaderRecordIndexEXT samplerHeapIndexStride(@NativeType("uint32_t") int value) Sets the specified value to thesamplerHeapIndexStridefield. -
samplerHeapArrayStride
public VkDescriptorMappingSourceShaderRecordIndexEXT samplerHeapArrayStride(@NativeType("uint32_t") int value) Sets the specified value to thesamplerHeapArrayStridefield. -
set
public VkDescriptorMappingSourceShaderRecordIndexEXT set(int heapOffset, int shaderRecordOffset, int heapIndexStride, int heapArrayStride, @Nullable VkSamplerCreateInfo pEmbeddedSampler, boolean useCombinedImageSamplerIndex, int samplerHeapOffset, int samplerShaderRecordOffset, int samplerHeapIndexStride, int samplerHeapArrayStride) Initializes this struct with the specified values. -
set
public VkDescriptorMappingSourceShaderRecordIndexEXT set(VkDescriptorMappingSourceShaderRecordIndexEXT src) Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkDescriptorMappingSourceShaderRecordIndexEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkDescriptorMappingSourceShaderRecordIndexEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkDescriptorMappingSourceShaderRecordIndexEXTinstance allocated withBufferUtils. -
create
Returns a newVkDescriptorMappingSourceShaderRecordIndexEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDescriptorMappingSourceShaderRecordIndexEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkDescriptorMappingSourceShaderRecordIndexEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkDescriptorMappingSourceShaderRecordIndexEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDescriptorMappingSourceShaderRecordIndexEXT.Buffer create(long address, int capacity) Create aVkDescriptorMappingSourceShaderRecordIndexEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkDescriptorMappingSourceShaderRecordIndexEXT.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkDescriptorMappingSourceShaderRecordIndexEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkDescriptorMappingSourceShaderRecordIndexEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDescriptorMappingSourceShaderRecordIndexEXT.Buffer malloc(int capacity, MemoryStack stack) Returns a newVkDescriptorMappingSourceShaderRecordIndexEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkDescriptorMappingSourceShaderRecordIndexEXT.Buffer calloc(int capacity, MemoryStack stack) Returns a newVkDescriptorMappingSourceShaderRecordIndexEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nheapOffset
public static int nheapOffset(long struct) Unsafe version ofheapOffset(). -
nshaderRecordOffset
public static int nshaderRecordOffset(long struct) Unsafe version ofshaderRecordOffset(). -
nheapIndexStride
public static int nheapIndexStride(long struct) Unsafe version ofheapIndexStride(). -
nheapArrayStride
public static int nheapArrayStride(long struct) Unsafe version ofheapArrayStride(). -
npEmbeddedSampler
Unsafe version ofpEmbeddedSampler(). -
nuseCombinedImageSamplerIndex
public static int nuseCombinedImageSamplerIndex(long struct) Unsafe version ofuseCombinedImageSamplerIndex(). -
nsamplerHeapOffset
public static int nsamplerHeapOffset(long struct) Unsafe version ofsamplerHeapOffset(). -
nsamplerShaderRecordOffset
public static int nsamplerShaderRecordOffset(long struct) Unsafe version ofsamplerShaderRecordOffset(). -
nsamplerHeapIndexStride
public static int nsamplerHeapIndexStride(long struct) Unsafe version ofsamplerHeapIndexStride(). -
nsamplerHeapArrayStride
public static int nsamplerHeapArrayStride(long struct) Unsafe version ofsamplerHeapArrayStride(). -
nheapOffset
public static void nheapOffset(long struct, int value) Unsafe version ofheapOffset. -
nshaderRecordOffset
public static void nshaderRecordOffset(long struct, int value) Unsafe version ofshaderRecordOffset. -
nheapIndexStride
public static void nheapIndexStride(long struct, int value) Unsafe version ofheapIndexStride. -
nheapArrayStride
public static void nheapArrayStride(long struct, int value) Unsafe version ofheapArrayStride. -
npEmbeddedSampler
Unsafe version ofpEmbeddedSampler. -
nuseCombinedImageSamplerIndex
public static void nuseCombinedImageSamplerIndex(long struct, int value) Unsafe version ofuseCombinedImageSamplerIndex. -
nsamplerHeapOffset
public static void nsamplerHeapOffset(long struct, int value) Unsafe version ofsamplerHeapOffset. -
nsamplerShaderRecordOffset
public static void nsamplerShaderRecordOffset(long struct, int value) Unsafe version ofsamplerShaderRecordOffset. -
nsamplerHeapIndexStride
public static void nsamplerHeapIndexStride(long struct, int value) Unsafe version ofsamplerHeapIndexStride. -
nsamplerHeapArrayStride
public static void nsamplerHeapArrayStride(long struct, int value) Unsafe version ofsamplerHeapArrayStride.
-