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
VkPipelineViewportSwizzleStateCreateInfoNVLayout
struct VkViewportSwizzleNV { VkViewportCoordinateSwizzleNVx(); VkViewportCoordinateSwizzleNVy(); VkViewportCoordinateSwizzleNVz(); VkViewportCoordinateSwizzleNVw(); }
-
-
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 Deprecated 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 VkViewportSwizzleNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkViewportSwizzleNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkViewportSwizzleNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkViewportSwizzleNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkViewportSwizzleNVcallocStack()Deprecated.static VkViewportSwizzleNV.BuffercallocStack(int capacity)Deprecated.static VkViewportSwizzleNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkViewportSwizzleNVcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 VkViewportSwizzleNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkViewportSwizzleNV.Bufferinstance allocated on the specifiedMemoryStack.static VkViewportSwizzleNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkViewportSwizzleNVinstance allocated on the specifiedMemoryStack.static VkViewportSwizzleNVmallocStack()Deprecated.static VkViewportSwizzleNV.BuffermallocStack(int capacity)Deprecated.static VkViewportSwizzleNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkViewportSwizzleNVmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()aVkViewportCoordinateSwizzleNVvalue specifying the swizzle operation to apply to the w component of the primitiveVkViewportSwizzleNVw(int value)Sets the specified value to thew()field.intx()aVkViewportCoordinateSwizzleNVvalue specifying the swizzle operation to apply to the x component of the primitiveVkViewportSwizzleNVx(int value)Sets the specified value to thex()field.inty()aVkViewportCoordinateSwizzleNVvalue specifying the swizzle operation to apply to the y component of the primitiveVkViewportSwizzleNVy(int value)Sets the specified value to they()field.intz()aVkViewportCoordinateSwizzleNVvalue specifying the swizzle operation to apply to the z component of the primitiveVkViewportSwizzleNVz(int value)Sets the specified value to thez()field.
-
-
-
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()
aVkViewportCoordinateSwizzleNVvalue specifying the swizzle operation to apply to the x component of the primitive
-
y
public int y()
aVkViewportCoordinateSwizzleNVvalue specifying the swizzle operation to apply to the y component of the primitive
-
z
public int z()
aVkViewportCoordinateSwizzleNVvalue specifying the swizzle operation to apply to the z component of the primitive
-
w
public int w()
aVkViewportCoordinateSwizzleNVvalue specifying the swizzle operation to apply to the w component of the primitive
-
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 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
@Deprecated public static VkViewportSwizzleNV mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkViewportSwizzleNV callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkViewportSwizzleNV mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkViewportSwizzleNV callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkViewportSwizzleNV.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkViewportSwizzleNV.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkViewportSwizzleNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkViewportSwizzleNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkViewportSwizzleNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkViewportSwizzleNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkViewportSwizzleNV calloc(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
-
malloc
public static VkViewportSwizzleNV.Buffer malloc(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
-
calloc
public static VkViewportSwizzleNV.Buffer calloc(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.
-
-