Class VkDescriptorMappingSourceConstantOffsetEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkDescriptorMappingSourceConstantOffsetEXT>
org.lwjgl.vulkan.VkDescriptorMappingSourceConstantOffsetEXT
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
public class VkDescriptorMappingSourceConstantOffsetEXT
extends Struct<VkDescriptorMappingSourceConstantOffsetEXT>
implements NativeResource
struct VkDescriptorMappingSourceConstantOffsetEXT {
uint32_t heapOffset;
uint32_t heapArrayStride;
VkSamplerCreateInfo const * pEmbeddedSampler;
uint32_t samplerHeapOffset;
uint32_t samplerHeapArrayStride;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkDescriptorMappingSourceConstantOffsetEXTstructs.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 size in bytes.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCreates aVkDescriptorMappingSourceConstantOffsetEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkDescriptorMappingSourceConstantOffsetEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkDescriptorMappingSourceConstantOffsetEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkDescriptorMappingSourceConstantOffsetEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newVkDescriptorMappingSourceConstantOffsetEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkDescriptorMappingSourceConstantOffsetEXTinstance allocated withBufferUtils.create(int capacity) Returns a newVkDescriptorMappingSourceConstantOffsetEXT.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkDescriptorMappingSourceConstantOffsetEXTinstance for the specified memory address.create(long address, int capacity) Create aVkDescriptorMappingSourceConstantOffsetEXT.Bufferinstance at the specified memory.static @Nullable VkDescriptorMappingSourceConstantOffsetEXTcreateSafe(long address) static @Nullable VkDescriptorMappingSourceConstantOffsetEXT.BuffercreateSafe(long address, int capacity) intheapArrayStride(int value) Sets the specified value to theheapArrayStridefield.intheapOffset(int value) Sets the specified value to theheapOffsetfield.malloc()Returns a newVkDescriptorMappingSourceConstantOffsetEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkDescriptorMappingSourceConstantOffsetEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkDescriptorMappingSourceConstantOffsetEXT.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newVkDescriptorMappingSourceConstantOffsetEXTinstance allocated on the specifiedMemoryStack.static intnheapArrayStride(long struct) Unsafe version ofheapArrayStride().static voidnheapArrayStride(long struct, int value) Unsafe version ofheapArrayStride.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 intnsamplerHeapOffset(long struct) Unsafe version ofsamplerHeapOffset().static voidnsamplerHeapOffset(long struct, int value) Unsafe version ofsamplerHeapOffset.@Nullable VkSamplerCreateInfopEmbeddedSampler(@Nullable VkSamplerCreateInfo value) Sets the address of the specifiedVkSamplerCreateInfoto thepEmbeddedSamplerfield.intsamplerHeapArrayStride(int value) Sets the specified value to thesamplerHeapArrayStridefield.intsamplerHeapOffset(int value) Sets the specified value to thesamplerHeapOffsetfield.set(int heapOffset, int heapArrayStride, @Nullable VkSamplerCreateInfo pEmbeddedSampler, int samplerHeapOffset, int samplerHeapArrayStride) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).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. -
HEAPARRAYSTRIDE
public static final int HEAPARRAYSTRIDEThe struct member offsets. -
PEMBEDDEDSAMPLER
public static final int PEMBEDDEDSAMPLERThe struct member offsets. -
SAMPLERHEAPOFFSET
public static final int SAMPLERHEAPOFFSETThe struct member offsets. -
SAMPLERHEAPARRAYSTRIDE
public static final int SAMPLERHEAPARRAYSTRIDEThe struct member offsets.
-
-
Constructor Details
-
VkDescriptorMappingSourceConstantOffsetEXT
Creates aVkDescriptorMappingSourceConstantOffsetEXTinstance 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<VkDescriptorMappingSourceConstantOffsetEXT>
-
heapOffset
- Returns:
- the value of the
heapOffsetfield.
-
heapArrayStride
- Returns:
- the value of the
heapArrayStridefield.
-
pEmbeddedSampler
- Returns:
- a
VkSamplerCreateInfoview of the struct pointed to by thepEmbeddedSamplerfield.
-
samplerHeapOffset
- Returns:
- the value of the
samplerHeapOffsetfield.
-
samplerHeapArrayStride
- Returns:
- the value of the
samplerHeapArrayStridefield.
-
heapOffset
Sets the specified value to theheapOffsetfield. -
heapArrayStride
public VkDescriptorMappingSourceConstantOffsetEXT heapArrayStride(@NativeType("uint32_t") int value) Sets the specified value to theheapArrayStridefield. -
pEmbeddedSampler
public VkDescriptorMappingSourceConstantOffsetEXT pEmbeddedSampler(@NativeType("VkSamplerCreateInfo const *") @Nullable VkSamplerCreateInfo value) Sets the address of the specifiedVkSamplerCreateInfoto thepEmbeddedSamplerfield. -
samplerHeapOffset
public VkDescriptorMappingSourceConstantOffsetEXT samplerHeapOffset(@NativeType("uint32_t") int value) Sets the specified value to thesamplerHeapOffsetfield. -
samplerHeapArrayStride
public VkDescriptorMappingSourceConstantOffsetEXT samplerHeapArrayStride(@NativeType("uint32_t") int value) Sets the specified value to thesamplerHeapArrayStridefield. -
set
public VkDescriptorMappingSourceConstantOffsetEXT set(int heapOffset, int heapArrayStride, @Nullable VkSamplerCreateInfo pEmbeddedSampler, int samplerHeapOffset, int samplerHeapArrayStride) Initializes this struct with the specified values. -
set
public VkDescriptorMappingSourceConstantOffsetEXT set(VkDescriptorMappingSourceConstantOffsetEXT src) Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkDescriptorMappingSourceConstantOffsetEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkDescriptorMappingSourceConstantOffsetEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkDescriptorMappingSourceConstantOffsetEXTinstance allocated withBufferUtils. -
create
Returns a newVkDescriptorMappingSourceConstantOffsetEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDescriptorMappingSourceConstantOffsetEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkDescriptorMappingSourceConstantOffsetEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkDescriptorMappingSourceConstantOffsetEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkDescriptorMappingSourceConstantOffsetEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkDescriptorMappingSourceConstantOffsetEXT.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkDescriptorMappingSourceConstantOffsetEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkDescriptorMappingSourceConstantOffsetEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDescriptorMappingSourceConstantOffsetEXT.Buffer malloc(int capacity, MemoryStack stack) Returns a newVkDescriptorMappingSourceConstantOffsetEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkDescriptorMappingSourceConstantOffsetEXT.Buffer calloc(int capacity, MemoryStack stack) Returns a newVkDescriptorMappingSourceConstantOffsetEXT.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(). -
nheapArrayStride
public static int nheapArrayStride(long struct) Unsafe version ofheapArrayStride(). -
npEmbeddedSampler
Unsafe version ofpEmbeddedSampler(). -
nsamplerHeapOffset
public static int nsamplerHeapOffset(long struct) Unsafe version ofsamplerHeapOffset(). -
nsamplerHeapArrayStride
public static int nsamplerHeapArrayStride(long struct) Unsafe version ofsamplerHeapArrayStride(). -
nheapOffset
public static void nheapOffset(long struct, int value) Unsafe version ofheapOffset. -
nheapArrayStride
public static void nheapArrayStride(long struct, int value) Unsafe version ofheapArrayStride. -
npEmbeddedSampler
Unsafe version ofpEmbeddedSampler. -
nsamplerHeapOffset
public static void nsamplerHeapOffset(long struct, int value) Unsafe version ofsamplerHeapOffset. -
nsamplerHeapArrayStride
public static void nsamplerHeapArrayStride(long struct, int value) Unsafe version ofsamplerHeapArrayStride.
-