Package org.lwjgl.vulkan
Class VkWriteDescriptorSetInlineUniformBlock
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkWriteDescriptorSetInlineUniformBlock
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkWriteDescriptorSetInlineUniformBlockEXT
public class VkWriteDescriptorSetInlineUniformBlock extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying inline uniform block data.Valid Usage
dataSizemust be an integer multiple of 4
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_INLINE_UNIFORM_BLOCKpDatamust be a valid pointer to an array ofdataSizebytesdataSizemust be greater than 0
Layout
struct VkWriteDescriptorSetInlineUniformBlock { VkStructureTypesType(); void const *pNext(); uint32_tdataSize(); void const *pData(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkWriteDescriptorSetInlineUniformBlock.BufferAn array ofVkWriteDescriptorSetInlineUniformBlockstructs.
-
Constructor Summary
Constructors Constructor Description VkWriteDescriptorSetInlineUniformBlock(java.nio.ByteBuffer container)Creates aVkWriteDescriptorSetInlineUniformBlockinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkWriteDescriptorSetInlineUniformBlockcalloc()Returns a newVkWriteDescriptorSetInlineUniformBlockinstance allocated withmemCalloc.static VkWriteDescriptorSetInlineUniformBlock.Buffercalloc(int capacity)Returns a newVkWriteDescriptorSetInlineUniformBlock.Bufferinstance allocated withmemCalloc.static VkWriteDescriptorSetInlineUniformBlock.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkWriteDescriptorSetInlineUniformBlock.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkWriteDescriptorSetInlineUniformBlockcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkWriteDescriptorSetInlineUniformBlockinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkWriteDescriptorSetInlineUniformBlockcreate()Returns a newVkWriteDescriptorSetInlineUniformBlockinstance allocated withBufferUtils.static VkWriteDescriptorSetInlineUniformBlock.Buffercreate(int capacity)Returns a newVkWriteDescriptorSetInlineUniformBlock.Bufferinstance allocated withBufferUtils.static VkWriteDescriptorSetInlineUniformBlockcreate(long address)Returns a newVkWriteDescriptorSetInlineUniformBlockinstance for the specified memory address.static VkWriteDescriptorSetInlineUniformBlock.Buffercreate(long address, int capacity)Create aVkWriteDescriptorSetInlineUniformBlock.Bufferinstance at the specified memory.static VkWriteDescriptorSetInlineUniformBlockcreateSafe(long address)static VkWriteDescriptorSetInlineUniformBlock.BuffercreateSafe(long address, int capacity)intdataSize()the number of bytes of inline uniform block data pointed to bypData.static VkWriteDescriptorSetInlineUniformBlockmalloc()Returns a newVkWriteDescriptorSetInlineUniformBlockinstance allocated withmemAlloc.static VkWriteDescriptorSetInlineUniformBlock.Buffermalloc(int capacity)Returns a newVkWriteDescriptorSetInlineUniformBlock.Bufferinstance allocated withmemAlloc.static VkWriteDescriptorSetInlineUniformBlock.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkWriteDescriptorSetInlineUniformBlock.Bufferinstance allocated on the specifiedMemoryStack.static VkWriteDescriptorSetInlineUniformBlockmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkWriteDescriptorSetInlineUniformBlockinstance allocated on the specifiedMemoryStack.static intndataSize(long struct)Unsafe version ofdataSize().static voidndataSize(long struct, int value)Sets the specified value to thedataSizefield of the specifiedstruct.static java.nio.ByteBuffernpData(long struct)Unsafe version ofpData.static voidnpData(long struct, java.nio.ByteBuffer value)Unsafe version ofpData.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.java.nio.ByteBufferpData()a pointer todataSizenumber of bytes of data to write to the inline uniform block.VkWriteDescriptorSetInlineUniformBlockpData(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto thepData()field.longpNext()NULLor a pointer to a structure extending this structure.VkWriteDescriptorSetInlineUniformBlockpNext(long value)Sets the specified value to thepNext()field.VkWriteDescriptorSetInlineUniformBlockset(int sType, long pNext, java.nio.ByteBuffer pData)Initializes this struct with the specified values.VkWriteDescriptorSetInlineUniformBlockset(VkWriteDescriptorSetInlineUniformBlock src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkWriteDescriptorSetInlineUniformBlocksType(int value)Sets the specified value to thesType()field.VkWriteDescriptorSetInlineUniformBlocksType$Default()Sets theSTRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_INLINE_UNIFORM_BLOCKvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkWriteDescriptorSetInlineUniformBlock
public VkWriteDescriptorSetInlineUniformBlock(java.nio.ByteBuffer container)
Creates aVkWriteDescriptorSetInlineUniformBlockinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
dataSize
public int dataSize()
the number of bytes of inline uniform block data pointed to bypData.
-
pData
public java.nio.ByteBuffer pData()
a pointer todataSizenumber of bytes of data to write to the inline uniform block.
-
sType
public VkWriteDescriptorSetInlineUniformBlock sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkWriteDescriptorSetInlineUniformBlock sType$Default()
Sets theSTRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_INLINE_UNIFORM_BLOCKvalue to thesType()field.
-
pNext
public VkWriteDescriptorSetInlineUniformBlock pNext(long value)
Sets the specified value to thepNext()field.
-
pData
public VkWriteDescriptorSetInlineUniformBlock pData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto thepData()field.
-
set
public VkWriteDescriptorSetInlineUniformBlock set(int sType, long pNext, java.nio.ByteBuffer pData)
Initializes this struct with the specified values.
-
set
public VkWriteDescriptorSetInlineUniformBlock set(VkWriteDescriptorSetInlineUniformBlock src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkWriteDescriptorSetInlineUniformBlock malloc()
Returns a newVkWriteDescriptorSetInlineUniformBlockinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkWriteDescriptorSetInlineUniformBlock calloc()
Returns a newVkWriteDescriptorSetInlineUniformBlockinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkWriteDescriptorSetInlineUniformBlock create()
Returns a newVkWriteDescriptorSetInlineUniformBlockinstance allocated withBufferUtils.
-
create
public static VkWriteDescriptorSetInlineUniformBlock create(long address)
Returns a newVkWriteDescriptorSetInlineUniformBlockinstance for the specified memory address.
-
createSafe
@Nullable public static VkWriteDescriptorSetInlineUniformBlock createSafe(long address)
-
malloc
public static VkWriteDescriptorSetInlineUniformBlock.Buffer malloc(int capacity)
Returns a newVkWriteDescriptorSetInlineUniformBlock.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkWriteDescriptorSetInlineUniformBlock.Buffer calloc(int capacity)
Returns a newVkWriteDescriptorSetInlineUniformBlock.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkWriteDescriptorSetInlineUniformBlock.Buffer create(int capacity)
Returns a newVkWriteDescriptorSetInlineUniformBlock.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkWriteDescriptorSetInlineUniformBlock.Buffer create(long address, int capacity)
Create aVkWriteDescriptorSetInlineUniformBlock.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkWriteDescriptorSetInlineUniformBlock.Buffer createSafe(long address, int capacity)
-
malloc
public static VkWriteDescriptorSetInlineUniformBlock malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkWriteDescriptorSetInlineUniformBlockinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkWriteDescriptorSetInlineUniformBlock calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkWriteDescriptorSetInlineUniformBlockinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkWriteDescriptorSetInlineUniformBlock.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkWriteDescriptorSetInlineUniformBlock.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkWriteDescriptorSetInlineUniformBlock.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkWriteDescriptorSetInlineUniformBlock.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
ndataSize
public static int ndataSize(long struct)
Unsafe version ofdataSize().
-
npData
public static java.nio.ByteBuffer npData(long struct)
Unsafe version ofpData.
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ndataSize
public static void ndataSize(long struct, int value)Sets the specified value to thedataSizefield of the specifiedstruct.
-
npData
public static void npData(long struct, java.nio.ByteBuffer value)Unsafe version ofpData.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-