Class VkDescriptorMappingSourcePushIndexEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkDescriptorMappingSourcePushIndexEXT>
org.lwjgl.vulkan.VkDescriptorMappingSourcePushIndexEXT
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class VkDescriptorMappingSourcePushIndexEXT
extends Struct<VkDescriptorMappingSourcePushIndexEXT>
implements NativeResource
struct VkDescriptorMappingSourcePushIndexEXT {
uint32_t heapOffset;
uint32_t pushOffset;
uint32_t heapIndexStride;
uint32_t heapArrayStride;
VkSamplerCreateInfo const * pEmbeddedSampler;
VkBool32 useCombinedImageSamplerIndex;
uint32_t samplerHeapOffset;
uint32_t samplerPushOffset;
uint32_t samplerHeapIndexStride;
uint32_t samplerHeapArrayStride;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkDescriptorMappingSourcePushIndexEXTstructs.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
ConstructorsConstructorDescriptionVkDescriptorMappingSourcePushIndexEXT(ByteBuffer container) Creates aVkDescriptorMappingSourcePushIndexEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkDescriptorMappingSourcePushIndexEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkDescriptorMappingSourcePushIndexEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkDescriptorMappingSourcePushIndexEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newVkDescriptorMappingSourcePushIndexEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkDescriptorMappingSourcePushIndexEXTinstance allocated withBufferUtils.create(int capacity) Returns a newVkDescriptorMappingSourcePushIndexEXT.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkDescriptorMappingSourcePushIndexEXTinstance for the specified memory address.create(long address, int capacity) Create aVkDescriptorMappingSourcePushIndexEXT.Bufferinstance at the specified memory.static @Nullable VkDescriptorMappingSourcePushIndexEXTcreateSafe(long address) static @Nullable VkDescriptorMappingSourcePushIndexEXT.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 newVkDescriptorMappingSourcePushIndexEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkDescriptorMappingSourcePushIndexEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkDescriptorMappingSourcePushIndexEXT.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newVkDescriptorMappingSourcePushIndexEXTinstance 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 intnpushOffset(long struct) Unsafe version ofpushOffset().static voidnpushOffset(long struct, int value) Unsafe version ofpushOffset.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 intnsamplerPushOffset(long struct) Unsafe version ofsamplerPushOffset().static voidnsamplerPushOffset(long struct, int value) Unsafe version ofsamplerPushOffset.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.intpushOffset(int value) Sets the specified value to thepushOffsetfield.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.intsamplerPushOffset(int value) Sets the specified value to thesamplerPushOffsetfield.set(int heapOffset, int pushOffset, int heapIndexStride, int heapArrayStride, @Nullable VkSamplerCreateInfo pEmbeddedSampler, boolean useCombinedImageSamplerIndex, int samplerHeapOffset, int samplerPushOffset, int samplerHeapIndexStride, int samplerHeapArrayStride) Initializes this struct with the specified values.Copies the specified struct data to this struct.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. -
PUSHOFFSET
public static final int PUSHOFFSETThe 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. -
SAMPLERPUSHOFFSET
public static final int SAMPLERPUSHOFFSETThe struct member offsets. -
SAMPLERHEAPINDEXSTRIDE
public static final int SAMPLERHEAPINDEXSTRIDEThe struct member offsets. -
SAMPLERHEAPARRAYSTRIDE
public static final int SAMPLERHEAPARRAYSTRIDEThe struct member offsets.
-
-
Constructor Details
-
VkDescriptorMappingSourcePushIndexEXT
Creates aVkDescriptorMappingSourcePushIndexEXTinstance 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<VkDescriptorMappingSourcePushIndexEXT>
-
heapOffset
- Returns:
- the value of the
heapOffsetfield.
-
pushOffset
- Returns:
- the value of the
pushOffsetfield.
-
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.
-
samplerPushOffset
- Returns:
- the value of the
samplerPushOffsetfield.
-
samplerHeapIndexStride
- Returns:
- the value of the
samplerHeapIndexStridefield.
-
samplerHeapArrayStride
- Returns:
- the value of the
samplerHeapArrayStridefield.
-
heapOffset
Sets the specified value to theheapOffsetfield. -
pushOffset
Sets the specified value to thepushOffsetfield. -
heapIndexStride
Sets the specified value to theheapIndexStridefield. -
heapArrayStride
Sets the specified value to theheapArrayStridefield. -
pEmbeddedSampler
public VkDescriptorMappingSourcePushIndexEXT pEmbeddedSampler(@NativeType("VkSamplerCreateInfo const *") @Nullable VkSamplerCreateInfo value) Sets the address of the specifiedVkSamplerCreateInfoto thepEmbeddedSamplerfield. -
useCombinedImageSamplerIndex
public VkDescriptorMappingSourcePushIndexEXT useCombinedImageSamplerIndex(@NativeType("VkBool32") boolean value) Sets the specified value to theuseCombinedImageSamplerIndexfield. -
samplerHeapOffset
Sets the specified value to thesamplerHeapOffsetfield. -
samplerPushOffset
Sets the specified value to thesamplerPushOffsetfield. -
samplerHeapIndexStride
public VkDescriptorMappingSourcePushIndexEXT samplerHeapIndexStride(@NativeType("uint32_t") int value) Sets the specified value to thesamplerHeapIndexStridefield. -
samplerHeapArrayStride
public VkDescriptorMappingSourcePushIndexEXT samplerHeapArrayStride(@NativeType("uint32_t") int value) Sets the specified value to thesamplerHeapArrayStridefield. -
set
public VkDescriptorMappingSourcePushIndexEXT set(int heapOffset, int pushOffset, int heapIndexStride, int heapArrayStride, @Nullable VkSamplerCreateInfo pEmbeddedSampler, boolean useCombinedImageSamplerIndex, int samplerHeapOffset, int samplerPushOffset, int samplerHeapIndexStride, int samplerHeapArrayStride) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkDescriptorMappingSourcePushIndexEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkDescriptorMappingSourcePushIndexEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkDescriptorMappingSourcePushIndexEXTinstance allocated withBufferUtils. -
create
Returns a newVkDescriptorMappingSourcePushIndexEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDescriptorMappingSourcePushIndexEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkDescriptorMappingSourcePushIndexEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkDescriptorMappingSourcePushIndexEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkDescriptorMappingSourcePushIndexEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkDescriptorMappingSourcePushIndexEXT.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkDescriptorMappingSourcePushIndexEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkDescriptorMappingSourcePushIndexEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkDescriptorMappingSourcePushIndexEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkDescriptorMappingSourcePushIndexEXT.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(). -
npushOffset
public static int npushOffset(long struct) Unsafe version ofpushOffset(). -
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(). -
nsamplerPushOffset
public static int nsamplerPushOffset(long struct) Unsafe version ofsamplerPushOffset(). -
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. -
npushOffset
public static void npushOffset(long struct, int value) Unsafe version ofpushOffset. -
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. -
nsamplerPushOffset
public static void nsamplerPushOffset(long struct, int value) Unsafe version ofsamplerPushOffset. -
nsamplerHeapIndexStride
public static void nsamplerHeapIndexStride(long struct, int value) Unsafe version ofsamplerHeapIndexStride. -
nsamplerHeapArrayStride
public static void nsamplerHeapArrayStride(long struct, int value) Unsafe version ofsamplerHeapArrayStride.
-