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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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 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 aVkSubresourceLayoutinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongarrayPitch(long value) Sets the specified value to thearrayPitchfield.static VkSubresourceLayoutcalloc()Returns a newVkSubresourceLayoutinstance allocated withmemCalloc.static VkSubresourceLayout.Buffercalloc(int capacity) Returns a newVkSubresourceLayout.Bufferinstance allocated withmemCalloc.static VkSubresourceLayout.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkSubresourceLayout.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSubresourceLayoutcalloc(MemoryStack stack) Returns a newVkSubresourceLayoutinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSubresourceLayoutcreate()Returns a newVkSubresourceLayoutinstance allocated withBufferUtils.static VkSubresourceLayout.Buffercreate(int capacity) Returns a newVkSubresourceLayout.Bufferinstance allocated withBufferUtils.static VkSubresourceLayoutcreate(long address) Returns a newVkSubresourceLayoutinstance for the specified memory address.static VkSubresourceLayout.Buffercreate(long address, int capacity) Create aVkSubresourceLayout.Bufferinstance at the specified memory.static @Nullable VkSubresourceLayoutcreateSafe(long address) static @Nullable VkSubresourceLayout.BuffercreateSafe(long address, int capacity) longdepthPitch(long value) Sets the specified value to thedepthPitchfield.static VkSubresourceLayoutmalloc()Returns a newVkSubresourceLayoutinstance allocated withmemAlloc.static VkSubresourceLayout.Buffermalloc(int capacity) Returns a newVkSubresourceLayout.Bufferinstance allocated withmemAlloc.static VkSubresourceLayout.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkSubresourceLayout.Bufferinstance allocated on the specifiedMemoryStack.static VkSubresourceLayoutmalloc(MemoryStack stack) Returns a newVkSubresourceLayoutinstance allocated on the specifiedMemoryStack.static longnarrayPitch(long struct) Unsafe version ofarrayPitch().static voidnarrayPitch(long struct, long value) Unsafe version ofarrayPitch.static longndepthPitch(long struct) Unsafe version ofdepthPitch().static voidndepthPitch(long struct, long value) Unsafe version ofdepthPitch.static longnoffset(long struct) Unsafe version ofoffset().static voidnoffset(long struct, long value) Unsafe version ofoffset.static longnrowPitch(long struct) Unsafe version ofrowPitch().static voidnrowPitch(long struct, long value) Unsafe version ofrowPitch.static longnsize(long struct) Unsafe version ofsize().static voidnsize(long struct, long value) Unsafe version ofsize.longoffset()offset(long value) Sets the specified value to theoffsetfield.longrowPitch()rowPitch(long value) Sets the specified value to therowPitchfield.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.longsize()size(long value) Sets the specified value to thesizefield.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. -
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 aVkSubresourceLayoutinstance 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<VkSubresourceLayout>
-
offset
public long offset()- Returns:
- the value of the
offsetfield.
-
size
public long size()- Returns:
- the value of the
sizefield.
-
rowPitch
public long rowPitch()- Returns:
- the value of the
rowPitchfield.
-
arrayPitch
public long arrayPitch()- Returns:
- the value of the
arrayPitchfield.
-
depthPitch
public long depthPitch()- Returns:
- the value of the
depthPitchfield.
-
offset
Sets the specified value to theoffsetfield. -
size
Sets the specified value to thesizefield. -
rowPitch
Sets the specified value to therowPitchfield. -
arrayPitch
Sets the specified value to thearrayPitchfield. -
depthPitch
Sets the specified value to thedepthPitchfield. -
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 newVkSubresourceLayoutinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkSubresourceLayoutinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkSubresourceLayoutinstance allocated withBufferUtils. -
create
Returns a newVkSubresourceLayoutinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkSubresourceLayout.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkSubresourceLayout.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkSubresourceLayout.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkSubresourceLayout.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkSubresourceLayoutinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkSubresourceLayoutinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkSubresourceLayout.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkSubresourceLayout.Bufferinstance allocated on the specifiedMemoryStackand 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.
-