Package org.lwjgl.vulkan
Class VkDescriptorDataEXT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
union VkDescriptorDataEXT {
VkSampler const * pSampler;
VkDescriptorImageInfo const * pCombinedImageSampler;
VkDescriptorImageInfo const * pInputAttachmentImage;
VkDescriptorImageInfo const * pSampledImage;
VkDescriptorImageInfo const * pStorageImage;
VkDescriptorAddressInfoEXT const * pUniformTexelBuffer;
VkDescriptorAddressInfoEXT const * pStorageTexelBuffer;
VkDescriptorAddressInfoEXT const * pUniformBuffer;
VkDescriptorAddressInfoEXT const * pStorageBuffer;
VkDeviceAddress accelerationStructure;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct member offsets.static 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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkDescriptorDataEXT(ByteBuffer container) Creates aVkDescriptorDataEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongaccelerationStructure(long value) Sets the specified value to theaccelerationStructurefield.static VkDescriptorDataEXTcalloc()Returns a newVkDescriptorDataEXTinstance allocated withmemCalloc.static VkDescriptorDataEXT.Buffercalloc(int capacity) Returns a newVkDescriptorDataEXT.Bufferinstance allocated withmemCalloc.static VkDescriptorDataEXT.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkDescriptorDataEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorDataEXTcalloc(MemoryStack stack) Returns a newVkDescriptorDataEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDescriptorDataEXTcreate()Returns a newVkDescriptorDataEXTinstance allocated withBufferUtils.static VkDescriptorDataEXT.Buffercreate(int capacity) Returns a newVkDescriptorDataEXT.Bufferinstance allocated withBufferUtils.static VkDescriptorDataEXTcreate(long address) Returns a newVkDescriptorDataEXTinstance for the specified memory address.static VkDescriptorDataEXT.Buffercreate(long address, int capacity) Create aVkDescriptorDataEXT.Bufferinstance at the specified memory.static @Nullable VkDescriptorDataEXTcreateSafe(long address) static @Nullable VkDescriptorDataEXT.BuffercreateSafe(long address, int capacity) static VkDescriptorDataEXTmalloc()Returns a newVkDescriptorDataEXTinstance allocated withmemAlloc.static VkDescriptorDataEXT.Buffermalloc(int capacity) Returns a newVkDescriptorDataEXT.Bufferinstance allocated withmemAlloc.static VkDescriptorDataEXT.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkDescriptorDataEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkDescriptorDataEXTmalloc(MemoryStack stack) Returns a newVkDescriptorDataEXTinstance allocated on the specifiedMemoryStack.static longnaccelerationStructure(long struct) Unsafe version ofaccelerationStructure().static voidnaccelerationStructure(long struct, long value) Unsafe version ofaccelerationStructure.static VkDescriptorImageInfonpCombinedImageSampler(long struct) Unsafe version ofpCombinedImageSampler().static voidnpCombinedImageSampler(long struct, VkDescriptorImageInfo value) Unsafe version ofpCombinedImageSampler.static VkDescriptorImageInfonpInputAttachmentImage(long struct) Unsafe version ofpInputAttachmentImage().static voidnpInputAttachmentImage(long struct, VkDescriptorImageInfo value) Unsafe version ofpInputAttachmentImage.static @Nullable VkDescriptorImageInfonpSampledImage(long struct) Unsafe version ofpSampledImage().static voidnpSampledImage(long struct, @Nullable VkDescriptorImageInfo value) Unsafe version ofpSampledImage.static LongBuffernpSampler(long struct, int capacity) Unsafe version ofpSampler.static voidnpSampler(long struct, LongBuffer value) Unsafe version ofpSampler.static @Nullable VkDescriptorAddressInfoEXTnpStorageBuffer(long struct) Unsafe version ofpStorageBuffer().static voidnpStorageBuffer(long struct, @Nullable VkDescriptorAddressInfoEXT value) Unsafe version ofpStorageBuffer.static @Nullable VkDescriptorImageInfonpStorageImage(long struct) Unsafe version ofpStorageImage().static voidnpStorageImage(long struct, @Nullable VkDescriptorImageInfo value) Unsafe version ofpStorageImage.static @Nullable VkDescriptorAddressInfoEXTnpStorageTexelBuffer(long struct) Unsafe version ofpStorageTexelBuffer().static voidnpStorageTexelBuffer(long struct, @Nullable VkDescriptorAddressInfoEXT value) Unsafe version ofpStorageTexelBuffer.static @Nullable VkDescriptorAddressInfoEXTnpUniformBuffer(long struct) Unsafe version ofpUniformBuffer().static voidnpUniformBuffer(long struct, @Nullable VkDescriptorAddressInfoEXT value) Unsafe version ofpUniformBuffer.static @Nullable VkDescriptorAddressInfoEXTnpUniformTexelBuffer(long struct) Unsafe version ofpUniformTexelBuffer().static voidnpUniformTexelBuffer(long struct, @Nullable VkDescriptorAddressInfoEXT value) Unsafe version ofpUniformTexelBuffer.Sets the address of the specifiedVkDescriptorImageInfoto thepCombinedImageSamplerfield.Sets the address of the specifiedVkDescriptorImageInfoto thepInputAttachmentImagefield.@Nullable VkDescriptorImageInfopSampledImage(@Nullable VkDescriptorImageInfo value) Sets the address of the specifiedVkDescriptorImageInfoto thepSampledImagefield.pSampler(int capacity) pSampler(LongBuffer value) Sets the address of the specifiedLongBufferto thepSamplerfield.@Nullable VkDescriptorAddressInfoEXTpStorageBuffer(@Nullable VkDescriptorAddressInfoEXT value) Sets the address of the specifiedVkDescriptorAddressInfoEXTto thepStorageBufferfield.@Nullable VkDescriptorImageInfopStorageImage(@Nullable VkDescriptorImageInfo value) Sets the address of the specifiedVkDescriptorImageInfoto thepStorageImagefield.@Nullable VkDescriptorAddressInfoEXTpStorageTexelBuffer(@Nullable VkDescriptorAddressInfoEXT value) Sets the address of the specifiedVkDescriptorAddressInfoEXTto thepStorageTexelBufferfield.@Nullable VkDescriptorAddressInfoEXTpUniformBuffer(@Nullable VkDescriptorAddressInfoEXT value) Sets the address of the specifiedVkDescriptorAddressInfoEXTto thepUniformBufferfield.@Nullable VkDescriptorAddressInfoEXTpUniformTexelBuffer(@Nullable VkDescriptorAddressInfoEXT value) Sets the address of the specifiedVkDescriptorAddressInfoEXTto thepUniformTexelBufferfield.set(VkDescriptorDataEXT src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aVkDescriptorDataEXTinstance 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<VkDescriptorDataEXT>
-
pSampler
- Returns:
- a
LongBufferview of the data pointed to by thepSamplerfield.
-
pCombinedImageSampler
- Returns:
- a
VkDescriptorImageInfoview of the struct pointed to by thepCombinedImageSamplerfield.
-
pInputAttachmentImage
- Returns:
- a
VkDescriptorImageInfoview of the struct pointed to by thepInputAttachmentImagefield.
-
pSampledImage
- Returns:
- a
VkDescriptorImageInfoview of the struct pointed to by thepSampledImagefield.
-
pStorageImage
- Returns:
- a
VkDescriptorImageInfoview of the struct pointed to by thepStorageImagefield.
-
pUniformTexelBuffer
- Returns:
- a
VkDescriptorAddressInfoEXTview of the struct pointed to by thepUniformTexelBufferfield.
-
pStorageTexelBuffer
- Returns:
- a
VkDescriptorAddressInfoEXTview of the struct pointed to by thepStorageTexelBufferfield.
-
pUniformBuffer
- Returns:
- a
VkDescriptorAddressInfoEXTview of the struct pointed to by thepUniformBufferfield.
-
pStorageBuffer
- Returns:
- a
VkDescriptorAddressInfoEXTview of the struct pointed to by thepStorageBufferfield.
-
accelerationStructure
public long accelerationStructure()- Returns:
- the value of the
accelerationStructurefield.
-
pSampler
Sets the address of the specifiedLongBufferto thepSamplerfield. -
pCombinedImageSampler
Sets the address of the specifiedVkDescriptorImageInfoto thepCombinedImageSamplerfield. -
pInputAttachmentImage
Sets the address of the specifiedVkDescriptorImageInfoto thepInputAttachmentImagefield. -
pSampledImage
Sets the address of the specifiedVkDescriptorImageInfoto thepSampledImagefield. -
pStorageImage
Sets the address of the specifiedVkDescriptorImageInfoto thepStorageImagefield. -
pUniformTexelBuffer
Sets the address of the specifiedVkDescriptorAddressInfoEXTto thepUniformTexelBufferfield. -
pStorageTexelBuffer
Sets the address of the specifiedVkDescriptorAddressInfoEXTto thepStorageTexelBufferfield. -
pUniformBuffer
Sets the address of the specifiedVkDescriptorAddressInfoEXTto thepUniformBufferfield. -
pStorageBuffer
Sets the address of the specifiedVkDescriptorAddressInfoEXTto thepStorageBufferfield. -
accelerationStructure
Sets the specified value to theaccelerationStructurefield. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkDescriptorDataEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkDescriptorDataEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkDescriptorDataEXTinstance allocated withBufferUtils. -
create
Returns a newVkDescriptorDataEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDescriptorDataEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkDescriptorDataEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkDescriptorDataEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkDescriptorDataEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkDescriptorDataEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkDescriptorDataEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkDescriptorDataEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkDescriptorDataEXT.Bufferinstance allocated on the specifiedMemoryStackand 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.
-