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.NativeResource
Structure specifying inline uniform block data.Valid Usage
dataSize
must be an integer multiple of 4
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_INLINE_UNIFORM_BLOCK_EXT
pData
must be a valid pointer to an array ofdataSize
bytesdataSize
must be greater than 0
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.dataSize
– the number of bytes of inline uniform block data pointed to bypData
.pData
– a pointer todataSize
number 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 class
VkWriteDescriptorSetInlineUniformBlockEXT.Buffer
An array ofVkWriteDescriptorSetInlineUniformBlockEXT
structs.
-
Constructor Summary
Constructors Constructor Description VkWriteDescriptorSetInlineUniformBlockEXT(java.nio.ByteBuffer container)
Creates aVkWriteDescriptorSetInlineUniformBlockEXT
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkWriteDescriptorSetInlineUniformBlockEXT
calloc()
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT
instance allocated withmemCalloc
.static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer
calloc(int capacity)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Buffer
instance allocated withmemCalloc
.static VkWriteDescriptorSetInlineUniformBlockEXT
callocStack()
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer
callocStack(int capacity)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkWriteDescriptorSetInlineUniformBlockEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkWriteDescriptorSetInlineUniformBlockEXT
create()
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT
instance allocated withBufferUtils
.static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer
create(int capacity)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Buffer
instance allocated withBufferUtils
.static VkWriteDescriptorSetInlineUniformBlockEXT
create(long address)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT
instance for the specified memory address.static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer
create(long address, int capacity)
Create aVkWriteDescriptorSetInlineUniformBlockEXT.Buffer
instance at the specified memory.static VkWriteDescriptorSetInlineUniformBlockEXT
createSafe(long address)
static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer
createSafe(long address, int capacity)
int
dataSize()
Returns the value of thedataSize
field.static VkWriteDescriptorSetInlineUniformBlockEXT
malloc()
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT
instance allocated withmemAlloc
.static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer
malloc(int capacity)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Buffer
instance allocated withmemAlloc
.static VkWriteDescriptorSetInlineUniformBlockEXT
mallocStack()
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT
instance allocated on the thread-localMemoryStack
.static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer
mallocStack(int capacity)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkWriteDescriptorSetInlineUniformBlockEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT
instance allocated on the specifiedMemoryStack
.static int
ndataSize(long struct)
Unsafe version ofdataSize()
.static void
ndataSize(long struct, int value)
Sets the specified value to thedataSize
field of the specifiedstruct
.static java.nio.ByteBuffer
npData(long struct)
Unsafe version ofpData
.static void
npData(long struct, java.nio.ByteBuffer value)
Unsafe version ofpData
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.java.nio.ByteBuffer
pData()
Returns aByteBuffer
view of the data pointed to by thepData
field.VkWriteDescriptorSetInlineUniformBlockEXT
pData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to thepData
field.long
pNext()
Returns the value of thepNext
field.VkWriteDescriptorSetInlineUniformBlockEXT
pNext(long value)
Sets the specified value to thepNext
field.VkWriteDescriptorSetInlineUniformBlockEXT
set(int sType, long pNext, java.nio.ByteBuffer pData)
Initializes this struct with the specified values.VkWriteDescriptorSetInlineUniformBlockEXT
set(VkWriteDescriptorSetInlineUniformBlockEXT src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkWriteDescriptorSetInlineUniformBlockEXT
sType(int value)
Sets the specified value to thesType
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(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 aVkWriteDescriptorSetInlineUniformBlockEXT
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
dataSize
public int dataSize()
Returns the value of thedataSize
field.
-
pData
public java.nio.ByteBuffer pData()
Returns aByteBuffer
view of the data pointed to by thepData
field.
-
sType
public VkWriteDescriptorSetInlineUniformBlockEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkWriteDescriptorSetInlineUniformBlockEXT pNext(long value)
Sets the specified value to thepNext
field.
-
pData
public VkWriteDescriptorSetInlineUniformBlockEXT pData(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBuffer
to thepData
field.
-
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 newVkWriteDescriptorSetInlineUniformBlockEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkWriteDescriptorSetInlineUniformBlockEXT calloc()
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkWriteDescriptorSetInlineUniformBlockEXT create()
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT
instance allocated withBufferUtils
.
-
create
public static VkWriteDescriptorSetInlineUniformBlockEXT create(long address)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkWriteDescriptorSetInlineUniformBlockEXT createSafe(long address)
-
malloc
public static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer malloc(int capacity)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer calloc(int capacity)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer create(int capacity)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer create(long address, int capacity)
Create aVkWriteDescriptorSetInlineUniformBlockEXT.Buffer
instance 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 newVkWriteDescriptorSetInlineUniformBlockEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkWriteDescriptorSetInlineUniformBlockEXT callocStack()
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkWriteDescriptorSetInlineUniformBlockEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkWriteDescriptorSetInlineUniformBlockEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkWriteDescriptorSetInlineUniformBlockEXT.Buffer callocStack(int capacity)
Returns a newVkWriteDescriptorSetInlineUniformBlockEXT.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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 thedataSize
field 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
-
-