Package org.lwjgl.vulkan
Class VkPipelineViewportWScalingStateCreateInfoNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPipelineViewportWScalingStateCreateInfoNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkPipelineViewportWScalingStateCreateInfoNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying parameters of a newly created pipeline viewport W scaling state.Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PIPELINE_VIEWPORT_W_SCALING_STATE_CREATE_INFO_NV
viewportCount
must be greater than 0
See Also
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.viewportWScalingEnable
– controls whether viewport W scaling is enabled.viewportCount
– the number of viewports used by W scaling, and must match the number of viewports in the pipeline if viewport W scaling is enabled.pViewportWScalings
– a pointer to an array ofVkViewportWScalingNV
structures, which define the W scaling parameters for the corresponding viewport. If the viewport W scaling state is dynamic, this member is ignored.
Layout
struct VkPipelineViewportWScalingStateCreateInfoNV { VkStructureType sType; void const * pNext; VkBool32 viewportWScalingEnable; uint32_t viewportCount;
VkViewportWScalingNV
const * pViewportWScalings; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPipelineViewportWScalingStateCreateInfoNV.Buffer
An array ofVkPipelineViewportWScalingStateCreateInfoNV
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
PNEXT
PVIEWPORTWSCALINGSThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
VIEWPORTCOUNT
VIEWPORTWSCALINGENABLEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineViewportWScalingStateCreateInfoNV(java.nio.ByteBuffer container)
Creates aVkPipelineViewportWScalingStateCreateInfoNV
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 VkPipelineViewportWScalingStateCreateInfoNV
calloc()
Returns a newVkPipelineViewportWScalingStateCreateInfoNV
instance allocated withmemCalloc
.static VkPipelineViewportWScalingStateCreateInfoNV.Buffer
calloc(int capacity)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Buffer
instance allocated withmemCalloc
.static VkPipelineViewportWScalingStateCreateInfoNV
callocStack()
Returns a newVkPipelineViewportWScalingStateCreateInfoNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPipelineViewportWScalingStateCreateInfoNV.Buffer
callocStack(int capacity)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPipelineViewportWScalingStateCreateInfoNV.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPipelineViewportWScalingStateCreateInfoNV
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPipelineViewportWScalingStateCreateInfoNV
create()
Returns a newVkPipelineViewportWScalingStateCreateInfoNV
instance allocated withBufferUtils
.static VkPipelineViewportWScalingStateCreateInfoNV.Buffer
create(int capacity)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Buffer
instance allocated withBufferUtils
.static VkPipelineViewportWScalingStateCreateInfoNV
create(long address)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV
instance for the specified memory address.static VkPipelineViewportWScalingStateCreateInfoNV.Buffer
create(long address, int capacity)
Create aVkPipelineViewportWScalingStateCreateInfoNV.Buffer
instance at the specified memory.static VkPipelineViewportWScalingStateCreateInfoNV
createSafe(long address)
static VkPipelineViewportWScalingStateCreateInfoNV.Buffer
createSafe(long address, int capacity)
static VkPipelineViewportWScalingStateCreateInfoNV
malloc()
Returns a newVkPipelineViewportWScalingStateCreateInfoNV
instance allocated withmemAlloc
.static VkPipelineViewportWScalingStateCreateInfoNV.Buffer
malloc(int capacity)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Buffer
instance allocated withmemAlloc
.static VkPipelineViewportWScalingStateCreateInfoNV
mallocStack()
Returns a newVkPipelineViewportWScalingStateCreateInfoNV
instance allocated on the thread-localMemoryStack
.static VkPipelineViewportWScalingStateCreateInfoNV.Buffer
mallocStack(int capacity)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Buffer
instance allocated on the thread-localMemoryStack
.static VkPipelineViewportWScalingStateCreateInfoNV.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkPipelineViewportWScalingStateCreateInfoNV
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV
instance allocated on the specifiedMemoryStack
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static VkViewportWScalingNV.Buffer
npViewportWScalings(long struct)
Unsafe version ofpViewportWScalings()
.static void
npViewportWScalings(long struct, VkViewportWScalingNV.Buffer value)
Unsafe version ofpViewportWScalings
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.static int
nviewportCount(long struct)
Unsafe version ofviewportCount()
.static void
nviewportCount(long struct, int value)
Sets the specified value to theviewportCount
field of the specifiedstruct
.static int
nviewportWScalingEnable(long struct)
Unsafe version ofviewportWScalingEnable()
.static void
nviewportWScalingEnable(long struct, int value)
Unsafe version ofviewportWScalingEnable
.long
pNext()
Returns the value of thepNext
field.VkPipelineViewportWScalingStateCreateInfoNV
pNext(long value)
Sets the specified value to thepNext
field.VkViewportWScalingNV.Buffer
pViewportWScalings()
Returns aVkViewportWScalingNV.Buffer
view of the struct array pointed to by thepViewportWScalings
field.VkPipelineViewportWScalingStateCreateInfoNV
pViewportWScalings(VkViewportWScalingNV.Buffer value)
Sets the address of the specifiedVkViewportWScalingNV.Buffer
to thepViewportWScalings
field.VkPipelineViewportWScalingStateCreateInfoNV
set(int sType, long pNext, boolean viewportWScalingEnable, int viewportCount, VkViewportWScalingNV.Buffer pViewportWScalings)
Initializes this struct with the specified values.VkPipelineViewportWScalingStateCreateInfoNV
set(VkPipelineViewportWScalingStateCreateInfoNV src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkPipelineViewportWScalingStateCreateInfoNV
sType(int value)
Sets the specified value to thesType
field.int
viewportCount()
Returns the value of theviewportCount
field.VkPipelineViewportWScalingStateCreateInfoNV
viewportCount(int value)
Sets the specified value to theviewportCount
field.boolean
viewportWScalingEnable()
Returns the value of theviewportWScalingEnable
field.VkPipelineViewportWScalingStateCreateInfoNV
viewportWScalingEnable(boolean value)
Sets the specified value to theviewportWScalingEnable
field.
-
-
-
Constructor Detail
-
VkPipelineViewportWScalingStateCreateInfoNV
public VkPipelineViewportWScalingStateCreateInfoNV(java.nio.ByteBuffer container)
Creates aVkPipelineViewportWScalingStateCreateInfoNV
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
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
viewportWScalingEnable
public boolean viewportWScalingEnable()
Returns the value of theviewportWScalingEnable
field.
-
viewportCount
public int viewportCount()
Returns the value of theviewportCount
field.
-
pViewportWScalings
@Nullable public VkViewportWScalingNV.Buffer pViewportWScalings()
Returns aVkViewportWScalingNV.Buffer
view of the struct array pointed to by thepViewportWScalings
field.
-
sType
public VkPipelineViewportWScalingStateCreateInfoNV sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPipelineViewportWScalingStateCreateInfoNV pNext(long value)
Sets the specified value to thepNext
field.
-
viewportWScalingEnable
public VkPipelineViewportWScalingStateCreateInfoNV viewportWScalingEnable(boolean value)
Sets the specified value to theviewportWScalingEnable
field.
-
viewportCount
public VkPipelineViewportWScalingStateCreateInfoNV viewportCount(int value)
Sets the specified value to theviewportCount
field.
-
pViewportWScalings
public VkPipelineViewportWScalingStateCreateInfoNV pViewportWScalings(@Nullable VkViewportWScalingNV.Buffer value)
Sets the address of the specifiedVkViewportWScalingNV.Buffer
to thepViewportWScalings
field.
-
set
public VkPipelineViewportWScalingStateCreateInfoNV set(int sType, long pNext, boolean viewportWScalingEnable, int viewportCount, @Nullable VkViewportWScalingNV.Buffer pViewportWScalings)
Initializes this struct with the specified values.
-
set
public VkPipelineViewportWScalingStateCreateInfoNV set(VkPipelineViewportWScalingStateCreateInfoNV src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPipelineViewportWScalingStateCreateInfoNV malloc()
Returns a newVkPipelineViewportWScalingStateCreateInfoNV
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPipelineViewportWScalingStateCreateInfoNV calloc()
Returns a newVkPipelineViewportWScalingStateCreateInfoNV
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPipelineViewportWScalingStateCreateInfoNV create()
Returns a newVkPipelineViewportWScalingStateCreateInfoNV
instance allocated withBufferUtils
.
-
create
public static VkPipelineViewportWScalingStateCreateInfoNV create(long address)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV
instance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineViewportWScalingStateCreateInfoNV createSafe(long address)
-
malloc
public static VkPipelineViewportWScalingStateCreateInfoNV.Buffer malloc(int capacity)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPipelineViewportWScalingStateCreateInfoNV.Buffer calloc(int capacity)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPipelineViewportWScalingStateCreateInfoNV.Buffer create(int capacity)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPipelineViewportWScalingStateCreateInfoNV.Buffer create(long address, int capacity)
Create aVkPipelineViewportWScalingStateCreateInfoNV.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPipelineViewportWScalingStateCreateInfoNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPipelineViewportWScalingStateCreateInfoNV mallocStack()
Returns a newVkPipelineViewportWScalingStateCreateInfoNV
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPipelineViewportWScalingStateCreateInfoNV callocStack()
Returns a newVkPipelineViewportWScalingStateCreateInfoNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPipelineViewportWScalingStateCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPipelineViewportWScalingStateCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPipelineViewportWScalingStateCreateInfoNV.Buffer mallocStack(int capacity)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPipelineViewportWScalingStateCreateInfoNV.Buffer callocStack(int capacity)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPipelineViewportWScalingStateCreateInfoNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPipelineViewportWScalingStateCreateInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType()
.
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext()
.
-
nviewportWScalingEnable
public static int nviewportWScalingEnable(long struct)
Unsafe version ofviewportWScalingEnable()
.
-
nviewportCount
public static int nviewportCount(long struct)
Unsafe version ofviewportCount()
.
-
npViewportWScalings
@Nullable public static VkViewportWScalingNV.Buffer npViewportWScalings(long struct)
Unsafe version ofpViewportWScalings()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
nviewportWScalingEnable
public static void nviewportWScalingEnable(long struct, int value)
Unsafe version ofviewportWScalingEnable
.
-
nviewportCount
public static void nviewportCount(long struct, int value)
Sets the specified value to theviewportCount
field of the specifiedstruct
.
-
npViewportWScalings
public static void npViewportWScalings(long struct, @Nullable VkViewportWScalingNV.Buffer value)
Unsafe version ofpViewportWScalings
.
-
-