Package org.lwjgl.vulkan
Class VkDescriptorDataEXT
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
union VkDescriptorDataEXT {
VkSampler const * pSampler;
{@link VkDescriptorImageInfo VkDescriptorImageInfo} const * pCombinedImageSampler;
{@link VkDescriptorImageInfo VkDescriptorImageInfo} const * pInputAttachmentImage;
{@link VkDescriptorImageInfo VkDescriptorImageInfo} const * pSampledImage;
{@link VkDescriptorImageInfo VkDescriptorImageInfo} const * pStorageImage;
{@link VkDescriptorAddressInfoEXT VkDescriptorAddressInfoEXT} const * pUniformTexelBuffer;
{@link VkDescriptorAddressInfoEXT VkDescriptorAddressInfoEXT} const * pStorageTexelBuffer;
{@link VkDescriptorAddressInfoEXT VkDescriptorAddressInfoEXT} const * pUniformBuffer;
{@link VkDescriptorAddressInfoEXT VkDescriptorAddressInfoEXT} const * pStorageBuffer;
VkDeviceAddress accelerationStructure;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct member offsets.static final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkDescriptorDataEXT
(ByteBuffer container) Creates aVkDescriptorDataEXT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
accelerationStructure
(long value) Sets the specified value to theaccelerationStructure
field.static VkDescriptorDataEXT
calloc()
Returns a newVkDescriptorDataEXT
instance allocated withmemCalloc
.static VkDescriptorDataEXT.Buffer
calloc
(int capacity) Returns a newVkDescriptorDataEXT.Buffer
instance allocated withmemCalloc
.static VkDescriptorDataEXT.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkDescriptorDataEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDescriptorDataEXT
calloc
(MemoryStack stack) Returns a newVkDescriptorDataEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDescriptorDataEXT
create()
Returns a newVkDescriptorDataEXT
instance allocated withBufferUtils
.static VkDescriptorDataEXT.Buffer
create
(int capacity) Returns a newVkDescriptorDataEXT.Buffer
instance allocated withBufferUtils
.static VkDescriptorDataEXT
create
(long address) Returns a newVkDescriptorDataEXT
instance for the specified memory address.static VkDescriptorDataEXT.Buffer
create
(long address, int capacity) Create aVkDescriptorDataEXT.Buffer
instance at the specified memory.static @Nullable VkDescriptorDataEXT
createSafe
(long address) static @Nullable VkDescriptorDataEXT.Buffer
createSafe
(long address, int capacity) static VkDescriptorDataEXT
malloc()
Returns a newVkDescriptorDataEXT
instance allocated withmemAlloc
.static VkDescriptorDataEXT.Buffer
malloc
(int capacity) Returns a newVkDescriptorDataEXT.Buffer
instance allocated withmemAlloc
.static VkDescriptorDataEXT.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkDescriptorDataEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkDescriptorDataEXT
malloc
(MemoryStack stack) Returns a newVkDescriptorDataEXT
instance allocated on the specifiedMemoryStack
.static long
naccelerationStructure
(long struct) Unsafe version ofaccelerationStructure()
.static void
naccelerationStructure
(long struct, long value) Unsafe version ofaccelerationStructure
.static VkDescriptorImageInfo
npCombinedImageSampler
(long struct) Unsafe version ofpCombinedImageSampler()
.static void
npCombinedImageSampler
(long struct, VkDescriptorImageInfo value) Unsafe version ofpCombinedImageSampler
.static VkDescriptorImageInfo
npInputAttachmentImage
(long struct) Unsafe version ofpInputAttachmentImage()
.static void
npInputAttachmentImage
(long struct, VkDescriptorImageInfo value) Unsafe version ofpInputAttachmentImage
.static @Nullable VkDescriptorImageInfo
npSampledImage
(long struct) Unsafe version ofpSampledImage()
.static void
npSampledImage
(long struct, @Nullable VkDescriptorImageInfo value) Unsafe version ofpSampledImage
.static LongBuffer
npSampler
(long struct, int capacity) Unsafe version ofpSampler
.static void
npSampler
(long struct, LongBuffer value) Unsafe version ofpSampler
.static @Nullable VkDescriptorAddressInfoEXT
npStorageBuffer
(long struct) Unsafe version ofpStorageBuffer()
.static void
npStorageBuffer
(long struct, @Nullable VkDescriptorAddressInfoEXT value) Unsafe version ofpStorageBuffer
.static @Nullable VkDescriptorImageInfo
npStorageImage
(long struct) Unsafe version ofpStorageImage()
.static void
npStorageImage
(long struct, @Nullable VkDescriptorImageInfo value) Unsafe version ofpStorageImage
.static @Nullable VkDescriptorAddressInfoEXT
npStorageTexelBuffer
(long struct) Unsafe version ofpStorageTexelBuffer()
.static void
npStorageTexelBuffer
(long struct, @Nullable VkDescriptorAddressInfoEXT value) Unsafe version ofpStorageTexelBuffer
.static @Nullable VkDescriptorAddressInfoEXT
npUniformBuffer
(long struct) Unsafe version ofpUniformBuffer()
.static void
npUniformBuffer
(long struct, @Nullable VkDescriptorAddressInfoEXT value) Unsafe version ofpUniformBuffer
.static @Nullable VkDescriptorAddressInfoEXT
npUniformTexelBuffer
(long struct) Unsafe version ofpUniformTexelBuffer()
.static void
npUniformTexelBuffer
(long struct, @Nullable VkDescriptorAddressInfoEXT value) Unsafe version ofpUniformTexelBuffer
.Sets the address of the specifiedVkDescriptorImageInfo
to thepCombinedImageSampler
field.Sets the address of the specifiedVkDescriptorImageInfo
to thepInputAttachmentImage
field.@Nullable VkDescriptorImageInfo
pSampledImage
(@Nullable VkDescriptorImageInfo value) Sets the address of the specifiedVkDescriptorImageInfo
to thepSampledImage
field.pSampler
(int capacity) pSampler
(LongBuffer value) Sets the address of the specifiedLongBuffer
to thepSampler
field.@Nullable VkDescriptorAddressInfoEXT
pStorageBuffer
(@Nullable VkDescriptorAddressInfoEXT value) Sets the address of the specifiedVkDescriptorAddressInfoEXT
to thepStorageBuffer
field.@Nullable VkDescriptorImageInfo
pStorageImage
(@Nullable VkDescriptorImageInfo value) Sets the address of the specifiedVkDescriptorImageInfo
to thepStorageImage
field.@Nullable VkDescriptorAddressInfoEXT
pStorageTexelBuffer
(@Nullable VkDescriptorAddressInfoEXT value) Sets the address of the specifiedVkDescriptorAddressInfoEXT
to thepStorageTexelBuffer
field.@Nullable VkDescriptorAddressInfoEXT
pUniformBuffer
(@Nullable VkDescriptorAddressInfoEXT value) Sets the address of the specifiedVkDescriptorAddressInfoEXT
to thepUniformBuffer
field.@Nullable VkDescriptorAddressInfoEXT
pUniformTexelBuffer
(@Nullable VkDescriptorAddressInfoEXT value) Sets the address of the specifiedVkDescriptorAddressInfoEXT
to thepUniformTexelBuffer
field.set
(VkDescriptorDataEXT src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.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. -
PSAMPLER
public static final int PSAMPLERThe struct member offsets. -
PCOMBINEDIMAGESAMPLER
public static final int PCOMBINEDIMAGESAMPLERThe struct member offsets. -
PINPUTATTACHMENTIMAGE
public static final int PINPUTATTACHMENTIMAGEThe struct member offsets. -
PSAMPLEDIMAGE
public static final int PSAMPLEDIMAGEThe struct member offsets. -
PSTORAGEIMAGE
public static final int PSTORAGEIMAGEThe struct member offsets. -
PUNIFORMTEXELBUFFER
public static final int PUNIFORMTEXELBUFFERThe struct member offsets. -
PSTORAGETEXELBUFFER
public static final int PSTORAGETEXELBUFFERThe struct member offsets. -
PUNIFORMBUFFER
public static final int PUNIFORMBUFFERThe struct member offsets. -
PSTORAGEBUFFER
public static final int PSTORAGEBUFFERThe struct member offsets. -
ACCELERATIONSTRUCTURE
public static final int ACCELERATIONSTRUCTUREThe struct member offsets.
-
-
Constructor Details
-
VkDescriptorDataEXT
Creates aVkDescriptorDataEXT
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkDescriptorDataEXT>
-
pSampler
- Returns:
- a
LongBuffer
view of the data pointed to by thepSampler
field.
-
pCombinedImageSampler
- Returns:
- a
VkDescriptorImageInfo
view of the struct pointed to by thepCombinedImageSampler
field.
-
pInputAttachmentImage
- Returns:
- a
VkDescriptorImageInfo
view of the struct pointed to by thepInputAttachmentImage
field.
-
pSampledImage
- Returns:
- a
VkDescriptorImageInfo
view of the struct pointed to by thepSampledImage
field.
-
pStorageImage
- Returns:
- a
VkDescriptorImageInfo
view of the struct pointed to by thepStorageImage
field.
-
pUniformTexelBuffer
- Returns:
- a
VkDescriptorAddressInfoEXT
view of the struct pointed to by thepUniformTexelBuffer
field.
-
pStorageTexelBuffer
- Returns:
- a
VkDescriptorAddressInfoEXT
view of the struct pointed to by thepStorageTexelBuffer
field.
-
pUniformBuffer
- Returns:
- a
VkDescriptorAddressInfoEXT
view of the struct pointed to by thepUniformBuffer
field.
-
pStorageBuffer
- Returns:
- a
VkDescriptorAddressInfoEXT
view of the struct pointed to by thepStorageBuffer
field.
-
accelerationStructure
public long accelerationStructure()- Returns:
- the value of the
accelerationStructure
field.
-
pSampler
Sets the address of the specifiedLongBuffer
to thepSampler
field. -
pCombinedImageSampler
Sets the address of the specifiedVkDescriptorImageInfo
to thepCombinedImageSampler
field. -
pInputAttachmentImage
Sets the address of the specifiedVkDescriptorImageInfo
to thepInputAttachmentImage
field. -
pSampledImage
Sets the address of the specifiedVkDescriptorImageInfo
to thepSampledImage
field. -
pStorageImage
Sets the address of the specifiedVkDescriptorImageInfo
to thepStorageImage
field. -
pUniformTexelBuffer
Sets the address of the specifiedVkDescriptorAddressInfoEXT
to thepUniformTexelBuffer
field. -
pStorageTexelBuffer
Sets the address of the specifiedVkDescriptorAddressInfoEXT
to thepStorageTexelBuffer
field. -
pUniformBuffer
Sets the address of the specifiedVkDescriptorAddressInfoEXT
to thepUniformBuffer
field. -
pStorageBuffer
Sets the address of the specifiedVkDescriptorAddressInfoEXT
to thepStorageBuffer
field. -
accelerationStructure
Sets the specified value to theaccelerationStructure
field. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkDescriptorDataEXT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkDescriptorDataEXT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkDescriptorDataEXT
instance allocated withBufferUtils
. -
create
Returns a newVkDescriptorDataEXT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDescriptorDataEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkDescriptorDataEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkDescriptorDataEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkDescriptorDataEXT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkDescriptorDataEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkDescriptorDataEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkDescriptorDataEXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkDescriptorDataEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
npSampler
Unsafe version ofpSampler
. -
npCombinedImageSampler
Unsafe version ofpCombinedImageSampler()
. -
npInputAttachmentImage
Unsafe version ofpInputAttachmentImage()
. -
npSampledImage
Unsafe version ofpSampledImage()
. -
npStorageImage
Unsafe version ofpStorageImage()
. -
npUniformTexelBuffer
Unsafe version ofpUniformTexelBuffer()
. -
npStorageTexelBuffer
Unsafe version ofpStorageTexelBuffer()
. -
npUniformBuffer
Unsafe version ofpUniformBuffer()
. -
npStorageBuffer
Unsafe version ofpStorageBuffer()
. -
naccelerationStructure
public static long naccelerationStructure(long struct) Unsafe version ofaccelerationStructure()
. -
npSampler
Unsafe version ofpSampler
. -
npCombinedImageSampler
Unsafe version ofpCombinedImageSampler
. -
npInputAttachmentImage
Unsafe version ofpInputAttachmentImage
. -
npSampledImage
Unsafe version ofpSampledImage
. -
npStorageImage
Unsafe version ofpStorageImage
. -
npUniformTexelBuffer
Unsafe version ofpUniformTexelBuffer
. -
npStorageTexelBuffer
Unsafe version ofpStorageTexelBuffer
. -
npUniformBuffer
Unsafe version ofpUniformBuffer
. -
npStorageBuffer
Unsafe version ofpStorageBuffer
. -
naccelerationStructure
public static void naccelerationStructure(long struct, long value) Unsafe version ofaccelerationStructure
.
-