Package org.lwjgl.vulkan
Class VkPhysicalDeviceHostImageCopyProperties
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkPhysicalDeviceHostImageCopyProperties>
org.lwjgl.vulkan.VkPhysicalDeviceHostImageCopyProperties
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
- Direct Known Subclasses:
VkPhysicalDeviceHostImageCopyPropertiesEXT
public class VkPhysicalDeviceHostImageCopyProperties
extends Struct<VkPhysicalDeviceHostImageCopyProperties>
implements NativeResource
struct VkPhysicalDeviceHostImageCopyProperties {
VkStructureType sType;
void * pNext;
uint32_t copySrcLayoutCount;
VkImageLayout * pCopySrcLayouts;
uint32_t copyDstLayoutCount;
VkImageLayout * pCopyDstLayouts;
uint8_t optimalTilingLayoutUUID[VK_UUID_SIZE];
VkBool32 identicalMemoryTypeRequirements;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkPhysicalDeviceHostImageCopyPropertiesstructs.Nested 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 member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionCreates aVkPhysicalDeviceHostImageCopyPropertiesinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkPhysicalDeviceHostImageCopyPropertiesinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkPhysicalDeviceHostImageCopyProperties.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkPhysicalDeviceHostImageCopyProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newVkPhysicalDeviceHostImageCopyPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcopyDstLayoutCount(int value) Sets the specified value to thecopyDstLayoutCountfield.intcopySrcLayoutCount(int value) Sets the specified value to thecopySrcLayoutCountfield.create()Returns a newVkPhysicalDeviceHostImageCopyPropertiesinstance allocated withBufferUtils.create(int capacity) Returns a newVkPhysicalDeviceHostImageCopyProperties.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkPhysicalDeviceHostImageCopyPropertiesinstance for the specified memory address.create(long address, int capacity) Create aVkPhysicalDeviceHostImageCopyProperties.Bufferinstance at the specified memory.static @Nullable VkPhysicalDeviceHostImageCopyPropertiescreateSafe(long address) static @Nullable VkPhysicalDeviceHostImageCopyProperties.BuffercreateSafe(long address, int capacity) booleanidenticalMemoryTypeRequirements(boolean value) Sets the specified value to theidenticalMemoryTypeRequirementsfield.malloc()Returns a newVkPhysicalDeviceHostImageCopyPropertiesinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkPhysicalDeviceHostImageCopyProperties.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkPhysicalDeviceHostImageCopyProperties.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newVkPhysicalDeviceHostImageCopyPropertiesinstance allocated on the specifiedMemoryStack.static intncopyDstLayoutCount(long struct) Unsafe version ofcopyDstLayoutCount().static voidncopyDstLayoutCount(long struct, int value) Sets the specified value to thecopyDstLayoutCountfield of the specifiedstruct.static intncopySrcLayoutCount(long struct) Unsafe version ofcopySrcLayoutCount().static voidncopySrcLayoutCount(long struct, int value) Sets the specified value to thecopySrcLayoutCountfield of the specifiedstruct.static intnidenticalMemoryTypeRequirements(long struct) Unsafe version ofidenticalMemoryTypeRequirements().static voidnidenticalMemoryTypeRequirements(long struct, int value) Unsafe version ofidenticalMemoryTypeRequirements.static ByteBuffernoptimalTilingLayoutUUID(long struct) Unsafe version ofoptimalTilingLayoutUUID().static bytenoptimalTilingLayoutUUID(long struct, int index) Unsafe version ofoptimalTilingLayoutUUID.static voidnoptimalTilingLayoutUUID(long struct, int index, byte value) Unsafe version ofoptimalTilingLayoutUUID.static voidnoptimalTilingLayoutUUID(long struct, ByteBuffer value) Unsafe version ofoptimalTilingLayoutUUID.static @Nullable IntBuffernpCopyDstLayouts(long struct) Unsafe version ofpCopyDstLayouts.static voidnpCopyDstLayouts(long struct, @Nullable IntBuffer value) Unsafe version ofpCopyDstLayouts.static @Nullable IntBuffernpCopySrcLayouts(long struct) Unsafe version ofpCopySrcLayouts.static voidnpCopySrcLayouts(long struct, @Nullable IntBuffer value) Unsafe version ofpCopySrcLayouts.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.byteoptimalTilingLayoutUUID(int index) optimalTilingLayoutUUID(int index, byte value) Sets the specified value at the specified index of theoptimalTilingLayoutUUIDfield.Copies the specifiedByteBufferto theoptimalTilingLayoutUUIDfield.@Nullable IntBufferpCopyDstLayouts(@Nullable IntBuffer value) Sets the address of the specifiedIntBufferto thepCopyDstLayoutsfield.@Nullable IntBufferpCopySrcLayouts(@Nullable IntBuffer value) Sets the address of the specifiedIntBufferto thepCopySrcLayoutsfield.longpNext()pNext(long value) Sets the specified value to thepNextfield.set(int sType, long pNext, int copySrcLayoutCount, @Nullable IntBuffer pCopySrcLayouts, int copyDstLayoutCount, @Nullable IntBuffer pCopyDstLayouts, ByteBuffer optimalTilingLayoutUUID, boolean identicalMemoryTypeRequirements) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIESvalue to thesTypefield.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. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
COPYSRCLAYOUTCOUNT
public static final int COPYSRCLAYOUTCOUNTThe struct member offsets. -
PCOPYSRCLAYOUTS
public static final int PCOPYSRCLAYOUTSThe struct member offsets. -
COPYDSTLAYOUTCOUNT
public static final int COPYDSTLAYOUTCOUNTThe struct member offsets. -
PCOPYDSTLAYOUTS
public static final int PCOPYDSTLAYOUTSThe struct member offsets. -
OPTIMALTILINGLAYOUTUUID
public static final int OPTIMALTILINGLAYOUTUUIDThe struct member offsets. -
IDENTICALMEMORYTYPEREQUIREMENTS
public static final int IDENTICALMEMORYTYPEREQUIREMENTSThe struct member offsets.
-
-
Constructor Details
-
VkPhysicalDeviceHostImageCopyProperties
Creates aVkPhysicalDeviceHostImageCopyPropertiesinstance 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<VkPhysicalDeviceHostImageCopyProperties>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
copySrcLayoutCount
public int copySrcLayoutCount()- Returns:
- the value of the
copySrcLayoutCountfield.
-
pCopySrcLayouts
- Returns:
- a
IntBufferview of the data pointed to by thepCopySrcLayoutsfield.
-
copyDstLayoutCount
public int copyDstLayoutCount()- Returns:
- the value of the
copyDstLayoutCountfield.
-
pCopyDstLayouts
- Returns:
- a
IntBufferview of the data pointed to by thepCopyDstLayoutsfield.
-
optimalTilingLayoutUUID
- Returns:
- a
ByteBufferview of theoptimalTilingLayoutUUIDfield.
-
optimalTilingLayoutUUID
public byte optimalTilingLayoutUUID(int index) - Returns:
- the value at the specified index of the
optimalTilingLayoutUUIDfield.
-
identicalMemoryTypeRequirements
public boolean identicalMemoryTypeRequirements()- Returns:
- the value of the
identicalMemoryTypeRequirementsfield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_IMAGE_COPY_PROPERTIESvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
copySrcLayoutCount
Sets the specified value to thecopySrcLayoutCountfield. -
pCopySrcLayouts
Sets the address of the specifiedIntBufferto thepCopySrcLayoutsfield. -
copyDstLayoutCount
Sets the specified value to thecopyDstLayoutCountfield. -
pCopyDstLayouts
Sets the address of the specifiedIntBufferto thepCopyDstLayoutsfield. -
optimalTilingLayoutUUID
Copies the specifiedByteBufferto theoptimalTilingLayoutUUIDfield. -
optimalTilingLayoutUUID
Sets the specified value at the specified index of theoptimalTilingLayoutUUIDfield. -
identicalMemoryTypeRequirements
Sets the specified value to theidenticalMemoryTypeRequirementsfield. -
set
public VkPhysicalDeviceHostImageCopyProperties set(int sType, long pNext, int copySrcLayoutCount, @Nullable IntBuffer pCopySrcLayouts, int copyDstLayoutCount, @Nullable IntBuffer pCopyDstLayouts, ByteBuffer optimalTilingLayoutUUID, boolean identicalMemoryTypeRequirements) 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 newVkPhysicalDeviceHostImageCopyPropertiesinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkPhysicalDeviceHostImageCopyPropertiesinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkPhysicalDeviceHostImageCopyPropertiesinstance allocated withBufferUtils. -
create
Returns a newVkPhysicalDeviceHostImageCopyPropertiesinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkPhysicalDeviceHostImageCopyProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkPhysicalDeviceHostImageCopyProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkPhysicalDeviceHostImageCopyProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkPhysicalDeviceHostImageCopyProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkPhysicalDeviceHostImageCopyProperties.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkPhysicalDeviceHostImageCopyPropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkPhysicalDeviceHostImageCopyPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceHostImageCopyProperties.Buffer malloc(int capacity, MemoryStack stack) Returns a newVkPhysicalDeviceHostImageCopyProperties.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceHostImageCopyProperties.Buffer calloc(int capacity, MemoryStack stack) Returns a newVkPhysicalDeviceHostImageCopyProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType(). -
npNext
public static long npNext(long struct) Unsafe version ofpNext(). -
ncopySrcLayoutCount
public static int ncopySrcLayoutCount(long struct) Unsafe version ofcopySrcLayoutCount(). -
npCopySrcLayouts
Unsafe version ofpCopySrcLayouts. -
ncopyDstLayoutCount
public static int ncopyDstLayoutCount(long struct) Unsafe version ofcopyDstLayoutCount(). -
npCopyDstLayouts
Unsafe version ofpCopyDstLayouts. -
noptimalTilingLayoutUUID
Unsafe version ofoptimalTilingLayoutUUID(). -
noptimalTilingLayoutUUID
public static byte noptimalTilingLayoutUUID(long struct, int index) Unsafe version ofoptimalTilingLayoutUUID. -
nidenticalMemoryTypeRequirements
public static int nidenticalMemoryTypeRequirements(long struct) Unsafe version ofidenticalMemoryTypeRequirements(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
ncopySrcLayoutCount
public static void ncopySrcLayoutCount(long struct, int value) Sets the specified value to thecopySrcLayoutCountfield of the specifiedstruct. -
npCopySrcLayouts
Unsafe version ofpCopySrcLayouts. -
ncopyDstLayoutCount
public static void ncopyDstLayoutCount(long struct, int value) Sets the specified value to thecopyDstLayoutCountfield of the specifiedstruct. -
npCopyDstLayouts
Unsafe version ofpCopyDstLayouts. -
noptimalTilingLayoutUUID
Unsafe version ofoptimalTilingLayoutUUID. -
noptimalTilingLayoutUUID
public static void noptimalTilingLayoutUUID(long struct, int index, byte value) Unsafe version ofoptimalTilingLayoutUUID. -
nidenticalMemoryTypeRequirements
public static void nidenticalMemoryTypeRequirements(long struct, int value) Unsafe version ofidenticalMemoryTypeRequirements.
-