Package org.lwjgl.vulkan
Class VkViewportSwizzleNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkViewportSwizzleNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkViewportSwizzleNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying a viewport swizzle.Valid Usage (Implicit)
x
must be a validVkViewportCoordinateSwizzleNV
valuey
must be a validVkViewportCoordinateSwizzleNV
valuez
must be a validVkViewportCoordinateSwizzleNV
valuew
must be a validVkViewportCoordinateSwizzleNV
value
See Also
VkPipelineViewportSwizzleStateCreateInfoNV
Member documentation
x
– aVkViewportCoordinateSwizzleNV
value specifying the swizzle operation to apply to the x component of the primitivey
– aVkViewportCoordinateSwizzleNV
value specifying the swizzle operation to apply to the y component of the primitivez
– aVkViewportCoordinateSwizzleNV
value specifying the swizzle operation to apply to the z component of the primitivew
– aVkViewportCoordinateSwizzleNV
value specifying the swizzle operation to apply to the w component of the primitive
Layout
struct VkViewportSwizzleNV { VkViewportCoordinateSwizzleNV x; VkViewportCoordinateSwizzleNV y; VkViewportCoordinateSwizzleNV z; VkViewportCoordinateSwizzleNV w; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkViewportSwizzleNV.Buffer
An array ofVkViewportSwizzleNV
structs.
-
Constructor Summary
Constructors Constructor Description VkViewportSwizzleNV(java.nio.ByteBuffer container)
Creates aVkViewportSwizzleNV
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 VkViewportSwizzleNV
calloc()
Returns a newVkViewportSwizzleNV
instance allocated withmemCalloc
.static VkViewportSwizzleNV.Buffer
calloc(int capacity)
Returns a newVkViewportSwizzleNV.Buffer
instance allocated withmemCalloc
.static VkViewportSwizzleNV
callocStack()
Returns a newVkViewportSwizzleNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkViewportSwizzleNV.Buffer
callocStack(int capacity)
Returns a newVkViewportSwizzleNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkViewportSwizzleNV.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportSwizzleNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkViewportSwizzleNV
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportSwizzleNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkViewportSwizzleNV
create()
Returns a newVkViewportSwizzleNV
instance allocated withBufferUtils
.static VkViewportSwizzleNV.Buffer
create(int capacity)
Returns a newVkViewportSwizzleNV.Buffer
instance allocated withBufferUtils
.static VkViewportSwizzleNV
create(long address)
Returns a newVkViewportSwizzleNV
instance for the specified memory address.static VkViewportSwizzleNV.Buffer
create(long address, int capacity)
Create aVkViewportSwizzleNV.Buffer
instance at the specified memory.static VkViewportSwizzleNV
createSafe(long address)
static VkViewportSwizzleNV.Buffer
createSafe(long address, int capacity)
static VkViewportSwizzleNV
malloc()
Returns a newVkViewportSwizzleNV
instance allocated withmemAlloc
.static VkViewportSwizzleNV.Buffer
malloc(int capacity)
Returns a newVkViewportSwizzleNV.Buffer
instance allocated withmemAlloc
.static VkViewportSwizzleNV
mallocStack()
Returns a newVkViewportSwizzleNV
instance allocated on the thread-localMemoryStack
.static VkViewportSwizzleNV.Buffer
mallocStack(int capacity)
Returns a newVkViewportSwizzleNV.Buffer
instance allocated on the thread-localMemoryStack
.static VkViewportSwizzleNV.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportSwizzleNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkViewportSwizzleNV
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportSwizzleNV
instance allocated on the specifiedMemoryStack
.static int
nw(long struct)
Unsafe version ofw()
.static void
nw(long struct, int value)
Unsafe version ofw
.static int
nx(long struct)
Unsafe version ofx()
.static void
nx(long struct, int value)
Unsafe version ofx
.static int
ny(long struct)
Unsafe version ofy()
.static void
ny(long struct, int value)
Unsafe version ofy
.static int
nz(long struct)
Unsafe version ofz()
.static void
nz(long struct, int value)
Unsafe version ofz
.VkViewportSwizzleNV
set(int x, int y, int z, int w)
Initializes this struct with the specified values.VkViewportSwizzleNV
set(VkViewportSwizzleNV src)
Copies the specified struct data to this struct.int
sizeof()
int
w()
Returns the value of thew
field.VkViewportSwizzleNV
w(int value)
Sets the specified value to thew
field.int
x()
Returns the value of thex
field.VkViewportSwizzleNV
x(int value)
Sets the specified value to thex
field.int
y()
Returns the value of they
field.VkViewportSwizzleNV
y(int value)
Sets the specified value to they
field.int
z()
Returns the value of thez
field.VkViewportSwizzleNV
z(int value)
Sets the specified value to thez
field.
-
-
-
Constructor Detail
-
VkViewportSwizzleNV
public VkViewportSwizzleNV(java.nio.ByteBuffer container)
Creates aVkViewportSwizzleNV
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
-
x
public int x()
Returns the value of thex
field.
-
y
public int y()
Returns the value of they
field.
-
z
public int z()
Returns the value of thez
field.
-
w
public int w()
Returns the value of thew
field.
-
x
public VkViewportSwizzleNV x(int value)
Sets the specified value to thex
field.
-
y
public VkViewportSwizzleNV y(int value)
Sets the specified value to they
field.
-
z
public VkViewportSwizzleNV z(int value)
Sets the specified value to thez
field.
-
w
public VkViewportSwizzleNV w(int value)
Sets the specified value to thew
field.
-
set
public VkViewportSwizzleNV set(int x, int y, int z, int w)
Initializes this struct with the specified values.
-
set
public VkViewportSwizzleNV set(VkViewportSwizzleNV src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkViewportSwizzleNV malloc()
Returns a newVkViewportSwizzleNV
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkViewportSwizzleNV calloc()
Returns a newVkViewportSwizzleNV
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkViewportSwizzleNV create()
Returns a newVkViewportSwizzleNV
instance allocated withBufferUtils
.
-
create
public static VkViewportSwizzleNV create(long address)
Returns a newVkViewportSwizzleNV
instance for the specified memory address.
-
createSafe
@Nullable public static VkViewportSwizzleNV createSafe(long address)
-
malloc
public static VkViewportSwizzleNV.Buffer malloc(int capacity)
Returns a newVkViewportSwizzleNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkViewportSwizzleNV.Buffer calloc(int capacity)
Returns a newVkViewportSwizzleNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkViewportSwizzleNV.Buffer create(int capacity)
Returns a newVkViewportSwizzleNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkViewportSwizzleNV.Buffer create(long address, int capacity)
Create aVkViewportSwizzleNV.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkViewportSwizzleNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkViewportSwizzleNV mallocStack()
Returns a newVkViewportSwizzleNV
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkViewportSwizzleNV callocStack()
Returns a newVkViewportSwizzleNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkViewportSwizzleNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportSwizzleNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkViewportSwizzleNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportSwizzleNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkViewportSwizzleNV.Buffer mallocStack(int capacity)
Returns a newVkViewportSwizzleNV.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkViewportSwizzleNV.Buffer callocStack(int capacity)
Returns a newVkViewportSwizzleNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkViewportSwizzleNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportSwizzleNV.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkViewportSwizzleNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportSwizzleNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nx
public static int nx(long struct)
Unsafe version ofx()
.
-
ny
public static int ny(long struct)
Unsafe version ofy()
.
-
nz
public static int nz(long struct)
Unsafe version ofz()
.
-
nw
public static int nw(long struct)
Unsafe version ofw()
.
-
nx
public static void nx(long struct, int value)
Unsafe version ofx
.
-
ny
public static void ny(long struct, int value)
Unsafe version ofy
.
-
nz
public static void nz(long struct, int value)
Unsafe version ofz
.
-
nw
public static void nw(long struct, int value)
Unsafe version ofw
.
-
-