public class VkRectLayerKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
offset and extent must be no greater than the imageExtent member of the VkSwapchainCreateInfoKHR structure given to CreateSwapchainKHR.layer must be less than imageArrayLayers member of the VkSwapchainCreateInfoKHR structure given to CreateSwapchainKHR.Some platforms allow the size of a surface to change, and then scale the pixels of the image to fit the surface. VkRectLayerKHR specifies pixels of the swapchain's image(s), which will be constant for the life of the swapchain.
VkExtent2D, VkOffset2D, VkPresentRegionKHR
offset – the origin of the rectangle, in pixels.extent – the size of the rectangle, in pixels.layer – the layer of the image. For images with only one layer, the value of layer must be 0.
struct VkRectLayerKHR {
VkOffset2D offset;
VkExtent2D extent;
uint32_t layer;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkRectLayerKHR.Buffer
An array of
VkRectLayerKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
EXTENT
The struct member offsets.
|
static int |
LAYER
The struct member offsets.
|
static int |
OFFSET
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkRectLayerKHR(java.nio.ByteBuffer container)
Creates a
VkRectLayerKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkRectLayerKHR |
calloc()
Returns a new
VkRectLayerKHR instance allocated with memCalloc. |
static VkRectLayerKHR.Buffer |
calloc(int capacity)
Returns a new
VkRectLayerKHR.Buffer instance allocated with memCalloc. |
static VkRectLayerKHR |
callocStack()
Returns a new
VkRectLayerKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkRectLayerKHR.Buffer |
callocStack(int capacity)
Returns a new
VkRectLayerKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkRectLayerKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkRectLayerKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkRectLayerKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkRectLayerKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkRectLayerKHR |
create()
Returns a new
VkRectLayerKHR instance allocated with BufferUtils. |
static VkRectLayerKHR.Buffer |
create(int capacity)
Returns a new
VkRectLayerKHR.Buffer instance allocated with BufferUtils. |
static VkRectLayerKHR |
create(long address)
Returns a new
VkRectLayerKHR instance for the specified memory address. |
static VkRectLayerKHR.Buffer |
create(long address,
int capacity)
Create a
VkRectLayerKHR.Buffer instance at the specified memory. |
static VkRectLayerKHR |
createSafe(long address)
|
static VkRectLayerKHR.Buffer |
createSafe(long address,
int capacity)
|
VkExtent2D |
extent()
Returns a
VkExtent2D view of the extent field. |
VkRectLayerKHR |
extent(java.util.function.Consumer<VkExtent2D> consumer)
Passes the
extent field to the specified Consumer. |
VkRectLayerKHR |
extent(VkExtent2D value)
Copies the specified
VkExtent2D to the extent field. |
int |
layer()
Returns the value of the
layer field. |
VkRectLayerKHR |
layer(int value)
Sets the specified value to the
layer field. |
static VkRectLayerKHR |
malloc()
Returns a new
VkRectLayerKHR instance allocated with memAlloc. |
static VkRectLayerKHR.Buffer |
malloc(int capacity)
Returns a new
VkRectLayerKHR.Buffer instance allocated with memAlloc. |
static VkRectLayerKHR |
mallocStack()
Returns a new
VkRectLayerKHR instance allocated on the thread-local MemoryStack. |
static VkRectLayerKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkRectLayerKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkRectLayerKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkRectLayerKHR.Buffer instance allocated on the specified MemoryStack. |
static VkRectLayerKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkRectLayerKHR instance allocated on the specified MemoryStack. |
static VkExtent2D |
nextent(long struct)
Unsafe version of
extent(). |
static void |
nextent(long struct,
VkExtent2D value)
Unsafe version of
extent. |
static int |
nlayer(long struct)
Unsafe version of
layer(). |
static void |
nlayer(long struct,
int value)
Unsafe version of
layer. |
static VkOffset2D |
noffset(long struct)
Unsafe version of
offset(). |
static void |
noffset(long struct,
VkOffset2D value)
Unsafe version of
offset. |
VkOffset2D |
offset()
Returns a
VkOffset2D view of the offset field. |
VkRectLayerKHR |
offset(java.util.function.Consumer<VkOffset2D> consumer)
Passes the
offset field to the specified Consumer. |
VkRectLayerKHR |
offset(VkOffset2D value)
Copies the specified
VkOffset2D to the offset field. |
VkRectLayerKHR |
set(VkOffset2D offset,
VkExtent2D extent,
int layer)
Initializes this struct with the specified values.
|
VkRectLayerKHR |
set(VkRectLayerKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int OFFSET
public static final int EXTENT
public static final int LAYER
public VkRectLayerKHR(java.nio.ByteBuffer container)
VkRectLayerKHR instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic VkOffset2D offset()
VkOffset2D view of the offset field.public VkExtent2D extent()
VkExtent2D view of the extent field.public int layer()
layer field.public VkRectLayerKHR offset(VkOffset2D value)
VkOffset2D to the offset field.public VkRectLayerKHR offset(java.util.function.Consumer<VkOffset2D> consumer)
offset field to the specified Consumer.public VkRectLayerKHR extent(VkExtent2D value)
VkExtent2D to the extent field.public VkRectLayerKHR extent(java.util.function.Consumer<VkExtent2D> consumer)
extent field to the specified Consumer.public VkRectLayerKHR layer(int value)
layer field.public VkRectLayerKHR set(VkOffset2D offset, VkExtent2D extent, int layer)
public VkRectLayerKHR set(VkRectLayerKHR src)
src - the source structpublic static VkRectLayerKHR malloc()
VkRectLayerKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkRectLayerKHR calloc()
VkRectLayerKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkRectLayerKHR create()
VkRectLayerKHR instance allocated with BufferUtils.public static VkRectLayerKHR create(long address)
VkRectLayerKHR instance for the specified memory address.@Nullable public static VkRectLayerKHR createSafe(long address)
public static VkRectLayerKHR.Buffer malloc(int capacity)
VkRectLayerKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkRectLayerKHR.Buffer calloc(int capacity)
VkRectLayerKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkRectLayerKHR.Buffer create(int capacity)
VkRectLayerKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkRectLayerKHR.Buffer create(long address, int capacity)
VkRectLayerKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkRectLayerKHR.Buffer createSafe(long address, int capacity)
public static VkRectLayerKHR mallocStack()
VkRectLayerKHR instance allocated on the thread-local MemoryStack.public static VkRectLayerKHR callocStack()
VkRectLayerKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkRectLayerKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkRectLayerKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkRectLayerKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkRectLayerKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkRectLayerKHR.Buffer mallocStack(int capacity)
VkRectLayerKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkRectLayerKHR.Buffer callocStack(int capacity)
VkRectLayerKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkRectLayerKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkRectLayerKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkRectLayerKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkRectLayerKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkOffset2D noffset(long struct)
offset().public static VkExtent2D nextent(long struct)
extent().public static int nlayer(long struct)
layer().public static void noffset(long struct,
VkOffset2D value)
offset.public static void nextent(long struct,
VkExtent2D value)
extent.public static void nlayer(long struct,
int value)
layer.Copyright LWJGL. All Rights Reserved. License terms.