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.NativeResourceStructure specifying a viewport swizzle.Valid Usage (Implicit)
xmust be a validVkViewportCoordinateSwizzleNVvalueymust be a validVkViewportCoordinateSwizzleNVvaluezmust be a validVkViewportCoordinateSwizzleNVvaluewmust be a validVkViewportCoordinateSwizzleNVvalue
See Also
VkPipelineViewportSwizzleStateCreateInfoNVMember documentation
x– aVkViewportCoordinateSwizzleNVvalue specifying the swizzle operation to apply to the x component of the primitivey– aVkViewportCoordinateSwizzleNVvalue specifying the swizzle operation to apply to the y component of the primitivez– aVkViewportCoordinateSwizzleNVvalue specifying the swizzle operation to apply to the z component of the primitivew– aVkViewportCoordinateSwizzleNVvalue 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 classVkViewportSwizzleNV.BufferAn array ofVkViewportSwizzleNVstructs.
-
Constructor Summary
Constructors Constructor Description VkViewportSwizzleNV(java.nio.ByteBuffer container)Creates aVkViewportSwizzleNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkViewportSwizzleNVcalloc()Returns a newVkViewportSwizzleNVinstance allocated withmemCalloc.static VkViewportSwizzleNV.Buffercalloc(int capacity)Returns a newVkViewportSwizzleNV.Bufferinstance allocated withmemCalloc.static VkViewportSwizzleNVcallocStack()Returns a newVkViewportSwizzleNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkViewportSwizzleNV.BuffercallocStack(int capacity)Returns a newVkViewportSwizzleNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkViewportSwizzleNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkViewportSwizzleNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkViewportSwizzleNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkViewportSwizzleNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkViewportSwizzleNVcreate()Returns a newVkViewportSwizzleNVinstance allocated withBufferUtils.static VkViewportSwizzleNV.Buffercreate(int capacity)Returns a newVkViewportSwizzleNV.Bufferinstance allocated withBufferUtils.static VkViewportSwizzleNVcreate(long address)Returns a newVkViewportSwizzleNVinstance for the specified memory address.static VkViewportSwizzleNV.Buffercreate(long address, int capacity)Create aVkViewportSwizzleNV.Bufferinstance at the specified memory.static VkViewportSwizzleNVcreateSafe(long address)static VkViewportSwizzleNV.BuffercreateSafe(long address, int capacity)static VkViewportSwizzleNVmalloc()Returns a newVkViewportSwizzleNVinstance allocated withmemAlloc.static VkViewportSwizzleNV.Buffermalloc(int capacity)Returns a newVkViewportSwizzleNV.Bufferinstance allocated withmemAlloc.static VkViewportSwizzleNVmallocStack()Returns a newVkViewportSwizzleNVinstance allocated on the thread-localMemoryStack.static VkViewportSwizzleNV.BuffermallocStack(int capacity)Returns a newVkViewportSwizzleNV.Bufferinstance allocated on the thread-localMemoryStack.static VkViewportSwizzleNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkViewportSwizzleNV.Bufferinstance allocated on the specifiedMemoryStack.static VkViewportSwizzleNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkViewportSwizzleNVinstance allocated on the specifiedMemoryStack.static intnw(long struct)Unsafe version ofw().static voidnw(long struct, int value)Unsafe version ofw.static intnx(long struct)Unsafe version ofx().static voidnx(long struct, int value)Unsafe version ofx.static intny(long struct)Unsafe version ofy().static voidny(long struct, int value)Unsafe version ofy.static intnz(long struct)Unsafe version ofz().static voidnz(long struct, int value)Unsafe version ofz.VkViewportSwizzleNVset(int x, int y, int z, int w)Initializes this struct with the specified values.VkViewportSwizzleNVset(VkViewportSwizzleNV src)Copies the specified struct data to this struct.intsizeof()intw()Returns the value of thewfield.VkViewportSwizzleNVw(int value)Sets the specified value to thewfield.intx()Returns the value of thexfield.VkViewportSwizzleNVx(int value)Sets the specified value to thexfield.inty()Returns the value of theyfield.VkViewportSwizzleNVy(int value)Sets the specified value to theyfield.intz()Returns the value of thezfield.VkViewportSwizzleNVz(int value)Sets the specified value to thezfield.
-
-
-
Constructor Detail
-
VkViewportSwizzleNV
public VkViewportSwizzleNV(java.nio.ByteBuffer container)
Creates aVkViewportSwizzleNVinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
x
public int x()
Returns the value of thexfield.
-
y
public int y()
Returns the value of theyfield.
-
z
public int z()
Returns the value of thezfield.
-
w
public int w()
Returns the value of thewfield.
-
x
public VkViewportSwizzleNV x(int value)
Sets the specified value to thexfield.
-
y
public VkViewportSwizzleNV y(int value)
Sets the specified value to theyfield.
-
z
public VkViewportSwizzleNV z(int value)
Sets the specified value to thezfield.
-
w
public VkViewportSwizzleNV w(int value)
Sets the specified value to thewfield.
-
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 newVkViewportSwizzleNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkViewportSwizzleNV calloc()
Returns a newVkViewportSwizzleNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkViewportSwizzleNV create()
Returns a newVkViewportSwizzleNVinstance allocated withBufferUtils.
-
create
public static VkViewportSwizzleNV create(long address)
Returns a newVkViewportSwizzleNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkViewportSwizzleNV createSafe(long address)
-
malloc
public static VkViewportSwizzleNV.Buffer malloc(int capacity)
Returns a newVkViewportSwizzleNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkViewportSwizzleNV.Buffer calloc(int capacity)
Returns a newVkViewportSwizzleNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkViewportSwizzleNV.Buffer create(int capacity)
Returns a newVkViewportSwizzleNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkViewportSwizzleNV.Buffer create(long address, int capacity)
Create aVkViewportSwizzleNV.Bufferinstance 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 newVkViewportSwizzleNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkViewportSwizzleNV callocStack()
Returns a newVkViewportSwizzleNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkViewportSwizzleNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportSwizzleNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkViewportSwizzleNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportSwizzleNVinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkViewportSwizzleNV.Buffer callocStack(int capacity)
Returns a newVkViewportSwizzleNV.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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.
-
-