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.NativeResourceStructure specifying parameters of a newly created pipeline viewport W scaling state.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_PIPELINE_VIEWPORT_W_SCALING_STATE_CREATE_INFO_NVviewportCountmust be greater than 0
See Also
Member documentation
sType– the type of this structure.pNext–NULLor 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 ofVkViewportWScalingNVstructures, 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;VkViewportWScalingNVconst * pViewportWScalings; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPipelineViewportWScalingStateCreateInfoNV.BufferAn array ofVkPipelineViewportWScalingStateCreateInfoNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
PVIEWPORTWSCALINGSThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
VIEWPORTCOUNT
VIEWPORTWSCALINGENABLEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPipelineViewportWScalingStateCreateInfoNV(java.nio.ByteBuffer container)Creates aVkPipelineViewportWScalingStateCreateInfoNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPipelineViewportWScalingStateCreateInfoNVcalloc()Returns a newVkPipelineViewportWScalingStateCreateInfoNVinstance allocated withmemCalloc.static VkPipelineViewportWScalingStateCreateInfoNV.Buffercalloc(int capacity)Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Bufferinstance allocated withmemCalloc.static VkPipelineViewportWScalingStateCreateInfoNVcallocStack()Returns a newVkPipelineViewportWScalingStateCreateInfoNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineViewportWScalingStateCreateInfoNV.BuffercallocStack(int capacity)Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPipelineViewportWScalingStateCreateInfoNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineViewportWScalingStateCreateInfoNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportWScalingStateCreateInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineViewportWScalingStateCreateInfoNVcreate()Returns a newVkPipelineViewportWScalingStateCreateInfoNVinstance allocated withBufferUtils.static VkPipelineViewportWScalingStateCreateInfoNV.Buffercreate(int capacity)Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Bufferinstance allocated withBufferUtils.static VkPipelineViewportWScalingStateCreateInfoNVcreate(long address)Returns a newVkPipelineViewportWScalingStateCreateInfoNVinstance for the specified memory address.static VkPipelineViewportWScalingStateCreateInfoNV.Buffercreate(long address, int capacity)Create aVkPipelineViewportWScalingStateCreateInfoNV.Bufferinstance at the specified memory.static VkPipelineViewportWScalingStateCreateInfoNVcreateSafe(long address)static VkPipelineViewportWScalingStateCreateInfoNV.BuffercreateSafe(long address, int capacity)static VkPipelineViewportWScalingStateCreateInfoNVmalloc()Returns a newVkPipelineViewportWScalingStateCreateInfoNVinstance allocated withmemAlloc.static VkPipelineViewportWScalingStateCreateInfoNV.Buffermalloc(int capacity)Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Bufferinstance allocated withmemAlloc.static VkPipelineViewportWScalingStateCreateInfoNVmallocStack()Returns a newVkPipelineViewportWScalingStateCreateInfoNVinstance allocated on the thread-localMemoryStack.static VkPipelineViewportWScalingStateCreateInfoNV.BuffermallocStack(int capacity)Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStack.static VkPipelineViewportWScalingStateCreateInfoNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineViewportWScalingStateCreateInfoNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportWScalingStateCreateInfoNVinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static VkViewportWScalingNV.BuffernpViewportWScalings(long struct)Unsafe version ofpViewportWScalings().static voidnpViewportWScalings(long struct, VkViewportWScalingNV.Buffer value)Unsafe version ofpViewportWScalings.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnviewportCount(long struct)Unsafe version ofviewportCount().static voidnviewportCount(long struct, int value)Sets the specified value to theviewportCountfield of the specifiedstruct.static intnviewportWScalingEnable(long struct)Unsafe version ofviewportWScalingEnable().static voidnviewportWScalingEnable(long struct, int value)Unsafe version ofviewportWScalingEnable.longpNext()Returns the value of thepNextfield.VkPipelineViewportWScalingStateCreateInfoNVpNext(long value)Sets the specified value to thepNextfield.VkViewportWScalingNV.BufferpViewportWScalings()Returns aVkViewportWScalingNV.Bufferview of the struct array pointed to by thepViewportWScalingsfield.VkPipelineViewportWScalingStateCreateInfoNVpViewportWScalings(VkViewportWScalingNV.Buffer value)Sets the address of the specifiedVkViewportWScalingNV.Bufferto thepViewportWScalingsfield.VkPipelineViewportWScalingStateCreateInfoNVset(int sType, long pNext, boolean viewportWScalingEnable, int viewportCount, VkViewportWScalingNV.Buffer pViewportWScalings)Initializes this struct with the specified values.VkPipelineViewportWScalingStateCreateInfoNVset(VkPipelineViewportWScalingStateCreateInfoNV src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPipelineViewportWScalingStateCreateInfoNVsType(int value)Sets the specified value to thesTypefield.intviewportCount()Returns the value of theviewportCountfield.VkPipelineViewportWScalingStateCreateInfoNVviewportCount(int value)Sets the specified value to theviewportCountfield.booleanviewportWScalingEnable()Returns the value of theviewportWScalingEnablefield.VkPipelineViewportWScalingStateCreateInfoNVviewportWScalingEnable(boolean value)Sets the specified value to theviewportWScalingEnablefield.
-
-
-
Constructor Detail
-
VkPipelineViewportWScalingStateCreateInfoNV
public VkPipelineViewportWScalingStateCreateInfoNV(java.nio.ByteBuffer container)
Creates aVkPipelineViewportWScalingStateCreateInfoNVinstance 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
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
viewportWScalingEnable
public boolean viewportWScalingEnable()
Returns the value of theviewportWScalingEnablefield.
-
viewportCount
public int viewportCount()
Returns the value of theviewportCountfield.
-
pViewportWScalings
@Nullable public VkViewportWScalingNV.Buffer pViewportWScalings()
Returns aVkViewportWScalingNV.Bufferview of the struct array pointed to by thepViewportWScalingsfield.
-
sType
public VkPipelineViewportWScalingStateCreateInfoNV sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPipelineViewportWScalingStateCreateInfoNV pNext(long value)
Sets the specified value to thepNextfield.
-
viewportWScalingEnable
public VkPipelineViewportWScalingStateCreateInfoNV viewportWScalingEnable(boolean value)
Sets the specified value to theviewportWScalingEnablefield.
-
viewportCount
public VkPipelineViewportWScalingStateCreateInfoNV viewportCount(int value)
Sets the specified value to theviewportCountfield.
-
pViewportWScalings
public VkPipelineViewportWScalingStateCreateInfoNV pViewportWScalings(@Nullable VkViewportWScalingNV.Buffer value)
Sets the address of the specifiedVkViewportWScalingNV.Bufferto thepViewportWScalingsfield.
-
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 newVkPipelineViewportWScalingStateCreateInfoNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPipelineViewportWScalingStateCreateInfoNV calloc()
Returns a newVkPipelineViewportWScalingStateCreateInfoNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPipelineViewportWScalingStateCreateInfoNV create()
Returns a newVkPipelineViewportWScalingStateCreateInfoNVinstance allocated withBufferUtils.
-
create
public static VkPipelineViewportWScalingStateCreateInfoNV create(long address)
Returns a newVkPipelineViewportWScalingStateCreateInfoNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkPipelineViewportWScalingStateCreateInfoNV createSafe(long address)
-
malloc
public static VkPipelineViewportWScalingStateCreateInfoNV.Buffer malloc(int capacity)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPipelineViewportWScalingStateCreateInfoNV.Buffer calloc(int capacity)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineViewportWScalingStateCreateInfoNV.Buffer create(int capacity)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPipelineViewportWScalingStateCreateInfoNV.Buffer create(long address, int capacity)
Create aVkPipelineViewportWScalingStateCreateInfoNV.Bufferinstance 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 newVkPipelineViewportWScalingStateCreateInfoNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPipelineViewportWScalingStateCreateInfoNV callocStack()
Returns a newVkPipelineViewportWScalingStateCreateInfoNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPipelineViewportWScalingStateCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportWScalingStateCreateInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPipelineViewportWScalingStateCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportWScalingStateCreateInfoNVinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPipelineViewportWScalingStateCreateInfoNV.Buffer callocStack(int capacity)
Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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 theviewportCountfield of the specifiedstruct.
-
npViewportWScalings
public static void npViewportWScalings(long struct, @Nullable VkViewportWScalingNV.Buffer value)Unsafe version ofpViewportWScalings.
-
-