Package org.lwjgl.vulkan
Class VkWriteDescriptorSetInlineUniformBlockEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkWriteDescriptorSetInlineUniformBlockEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkWriteDescriptorSetInlineUniformBlockEXT 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_BLOCK_EXTpDatamust be a valid pointer to an array ofdataSizebytesdataSizemust be greater than 0
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.dataSize– the number of bytes of inline uniform block data pointed to bypData.pData– a pointer todataSizenumber of bytes of data to write to the inline uniform block.
Layout
struct VkWriteDescriptorSetInlineUniformBlockEXT { VkStructureType sType; void const * pNext; uint32_t dataSize; void const * pData; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkWriteDescriptorSetInlineUniformBlockEXT.BufferAn array ofVkWriteDescriptorSetInlineUniformBlockEXTstructs.
-
Constructor Summary
Constructors Constructor Description VkWriteDescriptorSetInlineUniformBlockEXT(java.nio.ByteBuffer container)Creates aVkWriteDescriptorSetInlineUniformBlockEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkWriteDescriptorSetInlineUniformBlockEXTcalloc()Returns a newVkWriteDescriptorSetInlineUniformBlockEXTinstance allocated withmemCalloc.static VkWriteDescriptorSetInlineUniformBlockEXT.Buffercalloc(int capacity)Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Bufferinstance allocated withmemCalloc.static VkWriteDescriptorSetInlineUniformBlockEXTcallocStack()Returns a newVkWriteDescriptorSetInlineUniformBlockEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkWriteDescriptorSetInlineUniformBlockEXT.BuffercallocStack(int capacity)Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkWriteDescriptorSetInlineUniformBlockEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkWriteDescriptorSetInlineUniformBlockEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkWriteDescriptorSetInlineUniformBlockEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkWriteDescriptorSetInlineUniformBlockEXTcreate()Returns a newVkWriteDescriptorSetInlineUniformBlockEXTinstance allocated withBufferUtils.static VkWriteDescriptorSetInlineUniformBlockEXT.Buffercreate(int capacity)Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Bufferinstance allocated withBufferUtils.static VkWriteDescriptorSetInlineUniformBlockEXTcreate(long address)Returns a newVkWriteDescriptorSetInlineUniformBlockEXTinstance for the specified memory address.static VkWriteDescriptorSetInlineUniformBlockEXT.Buffercreate(long address, int capacity)Create aVkWriteDescriptorSetInlineUniformBlockEXT.Bufferinstance at the specified memory.static VkWriteDescriptorSetInlineUniformBlockEXTcreateSafe(long address)static VkWriteDescriptorSetInlineUniformBlockEXT.BuffercreateSafe(long address, int capacity)intdataSize()Returns the value of thedataSizefield.static VkWriteDescriptorSetInlineUniformBlockEXTmalloc()Returns a newVkWriteDescriptorSetInlineUniformBlockEXTinstance allocated withmemAlloc.static VkWriteDescriptorSetInlineUniformBlockEXT.Buffermalloc(int capacity)Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Bufferinstance allocated withmemAlloc.static VkWriteDescriptorSetInlineUniformBlockEXTmallocStack()Returns a newVkWriteDescriptorSetInlineUniformBlockEXTinstance allocated on the thread-localMemoryStack.static VkWriteDescriptorSetInlineUniformBlockEXT.BuffermallocStack(int capacity)Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkWriteDescriptorSetInlineUniformBlockEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkWriteDescriptorSetInlineUniformBlockEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkWriteDescriptorSetInlineUniformBlockEXTinstance 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()Returns aByteBufferview of the data pointed to by thepDatafield.VkWriteDescriptorSetInlineUniformBlockEXTpData(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto thepDatafield.longpNext()Returns the value of thepNextfield.VkWriteDescriptorSetInlineUniformBlockEXTpNext(long value)Sets the specified value to thepNextfield.VkWriteDescriptorSetInlineUniformBlockEXTset(int sType, long pNext, java.nio.ByteBuffer pData)Initializes this struct with the specified values.VkWriteDescriptorSetInlineUniformBlockEXTset(VkWriteDescriptorSetInlineUniformBlockEXT src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkWriteDescriptorSetInlineUniformBlockEXTsType(int value)Sets the specified value to thesTypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
VkWriteDescriptorSetInlineUniformBlockEXT
public VkWriteDescriptorSetInlineUniformBlockEXT(java.nio.ByteBuffer container)
Creates aVkWriteDescriptorSetInlineUniformBlockEXTinstance 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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
dataSize
public int dataSize()
Returns the value of thedataSizefield.
-
pData
public java.nio.ByteBuffer pData()
Returns aByteBufferview of the data pointed to by thepDatafield.
-
sType
public VkWriteDescriptorSetInlineUniformBlockEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkWriteDescriptorSetInlineUniformBlockEXT pNext(long value)
Sets the specified value to thepNextfield.
-
pData
public VkWriteDescriptorSetInlineUniformBlockEXT pData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto thepDatafield.
-
set
public VkWriteDescriptorSetInlineUniformBlockEXT set(int sType, long pNext, java.nio.ByteBuffer pData)
Initializes this struct with the specified values.
-
set
public VkWriteDescriptorSetInlineUniformBlockEXT set(VkWriteDescriptorSetInlineUniformBlockEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkWriteDescriptorSetInlineUniformBlockEXT malloc()
Returns a newVkWriteDescriptorSetInlineUniformBlockEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkWriteDescriptorSetInlineUniformBlockEXT calloc()
Returns a newVkWriteDescriptorSetInlineUniformBlockEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkWriteDescriptorSetInlineUniformBlockEXT create()
Returns a newVkWriteDescriptorSetInlineUniformBlockEXTinstance allocated withBufferUtils.
-
create
public static VkWriteDescriptorSetInlineUniformBlockEXT create(long address)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkWriteDescriptorSetInlineUniformBlockEXT createSafe(long address)
-
malloc
public static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer malloc(int capacity)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer calloc(int capacity)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer create(int capacity)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer create(long address, int capacity)
Create aVkWriteDescriptorSetInlineUniformBlockEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkWriteDescriptorSetInlineUniformBlockEXT mallocStack()
Returns a newVkWriteDescriptorSetInlineUniformBlockEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkWriteDescriptorSetInlineUniformBlockEXT callocStack()
Returns a newVkWriteDescriptorSetInlineUniformBlockEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkWriteDescriptorSetInlineUniformBlockEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkWriteDescriptorSetInlineUniformBlockEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer mallocStack(int capacity)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer callocStack(int capacity)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.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
-
validate
public static void validate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-