Package org.lwjgl.vulkan
Class VkSubresourceLayout
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct VkSubresourceLayout {
VkDeviceSize offset;
VkDeviceSize size;
VkDeviceSize rowPitch;
VkDeviceSize arrayPitch;
VkDeviceSize depthPitch;
}
-
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 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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkSubresourceLayout
(ByteBuffer container) Creates aVkSubresourceLayout
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionlong
arrayPitch
(long value) Sets the specified value to thearrayPitch
field.static VkSubresourceLayout
calloc()
Returns a newVkSubresourceLayout
instance allocated withmemCalloc
.static VkSubresourceLayout.Buffer
calloc
(int capacity) Returns a newVkSubresourceLayout.Buffer
instance allocated withmemCalloc
.static VkSubresourceLayout.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkSubresourceLayout.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSubresourceLayout
calloc
(MemoryStack stack) Returns a newVkSubresourceLayout
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSubresourceLayout
Deprecated.static VkSubresourceLayout.Buffer
callocStack
(int capacity) Deprecated.static VkSubresourceLayout.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static VkSubresourceLayout
callocStack
(MemoryStack stack) Deprecated.static VkSubresourceLayout
create()
Returns a newVkSubresourceLayout
instance allocated withBufferUtils
.static VkSubresourceLayout.Buffer
create
(int capacity) Returns a newVkSubresourceLayout.Buffer
instance allocated withBufferUtils
.static VkSubresourceLayout
create
(long address) Returns a newVkSubresourceLayout
instance for the specified memory address.static VkSubresourceLayout.Buffer
create
(long address, int capacity) Create aVkSubresourceLayout.Buffer
instance at the specified memory.static @Nullable VkSubresourceLayout
createSafe
(long address) static @Nullable VkSubresourceLayout.Buffer
createSafe
(long address, int capacity) long
depthPitch
(long value) Sets the specified value to thedepthPitch
field.static VkSubresourceLayout
malloc()
Returns a newVkSubresourceLayout
instance allocated withmemAlloc
.static VkSubresourceLayout.Buffer
malloc
(int capacity) Returns a newVkSubresourceLayout.Buffer
instance allocated withmemAlloc
.static VkSubresourceLayout.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkSubresourceLayout.Buffer
instance allocated on the specifiedMemoryStack
.static VkSubresourceLayout
malloc
(MemoryStack stack) Returns a newVkSubresourceLayout
instance allocated on the specifiedMemoryStack
.static VkSubresourceLayout
Deprecated.static VkSubresourceLayout.Buffer
mallocStack
(int capacity) Deprecated.static VkSubresourceLayout.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static VkSubresourceLayout
mallocStack
(MemoryStack stack) Deprecated.static long
narrayPitch
(long struct) Unsafe version ofarrayPitch()
.static void
narrayPitch
(long struct, long value) Unsafe version ofarrayPitch
.static long
ndepthPitch
(long struct) Unsafe version ofdepthPitch()
.static void
ndepthPitch
(long struct, long value) Unsafe version ofdepthPitch
.static long
noffset
(long struct) Unsafe version ofoffset()
.static void
noffset
(long struct, long value) Unsafe version ofoffset
.static long
nrowPitch
(long struct) Unsafe version ofrowPitch()
.static void
nrowPitch
(long struct, long value) Unsafe version ofrowPitch
.static long
nsize
(long struct) Unsafe version ofsize()
.static void
nsize
(long struct, long value) Unsafe version ofsize
.long
offset()
offset
(long value) Sets the specified value to theoffset
field.long
rowPitch()
rowPitch
(long value) Sets the specified value to therowPitch
field.set
(long offset, long size, long rowPitch, long arrayPitch, long depthPitch) Initializes this struct with the specified values.set
(VkSubresourceLayout src) Copies the specified struct data to this struct.long
size()
size
(long value) Sets the specified value to thesize
field.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. -
OFFSET
public static final int OFFSETThe struct member offsets. -
SIZE
public static final int SIZEThe struct member offsets. -
ROWPITCH
public static final int ROWPITCHThe struct member offsets. -
ARRAYPITCH
public static final int ARRAYPITCHThe struct member offsets. -
DEPTHPITCH
public static final int DEPTHPITCHThe struct member offsets.
-
-
Constructor Details
-
VkSubresourceLayout
Creates aVkSubresourceLayout
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<VkSubresourceLayout>
-
offset
public long offset()- Returns:
- the value of the
offset
field.
-
size
public long size()- Returns:
- the value of the
size
field.
-
rowPitch
public long rowPitch()- Returns:
- the value of the
rowPitch
field.
-
arrayPitch
public long arrayPitch()- Returns:
- the value of the
arrayPitch
field.
-
depthPitch
public long depthPitch()- Returns:
- the value of the
depthPitch
field.
-
offset
Sets the specified value to theoffset
field. -
size
Sets the specified value to thesize
field. -
rowPitch
Sets the specified value to therowPitch
field. -
arrayPitch
Sets the specified value to thearrayPitch
field. -
depthPitch
Sets the specified value to thedepthPitch
field. -
set
public VkSubresourceLayout set(long offset, long size, long rowPitch, long arrayPitch, long depthPitch) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkSubresourceLayout
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkSubresourceLayout
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkSubresourceLayout
instance allocated withBufferUtils
. -
create
Returns a newVkSubresourceLayout
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkSubresourceLayout.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkSubresourceLayout.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkSubresourceLayout.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkSubresourceLayout.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVkSubresourceLayout
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkSubresourceLayout
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkSubresourceLayout.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkSubresourceLayout.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
noffset
public static long noffset(long struct) Unsafe version ofoffset()
. -
nsize
public static long nsize(long struct) Unsafe version ofsize()
. -
nrowPitch
public static long nrowPitch(long struct) Unsafe version ofrowPitch()
. -
narrayPitch
public static long narrayPitch(long struct) Unsafe version ofarrayPitch()
. -
ndepthPitch
public static long ndepthPitch(long struct) Unsafe version ofdepthPitch()
. -
noffset
public static void noffset(long struct, long value) Unsafe version ofoffset
. -
nsize
public static void nsize(long struct, long value) Unsafe version ofsize
. -
nrowPitch
public static void nrowPitch(long struct, long value) Unsafe version ofrowPitch
. -
narrayPitch
public static void narrayPitch(long struct, long value) Unsafe version ofarrayPitch
. -
ndepthPitch
public static void ndepthPitch(long struct, long value) Unsafe version ofdepthPitch
.
-