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
Layout
struct VkPipelineViewportWScalingStateCreateInfoNV { VkStructureTypesType(); void const *pNext(); VkBool32viewportWScalingEnable(); uint32_tviewportCount();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 Deprecated 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 VkPipelineViewportWScalingStateCreateInfoNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineViewportWScalingStateCreateInfoNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportWScalingStateCreateInfoNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPipelineViewportWScalingStateCreateInfoNVcallocStack()Deprecated.static VkPipelineViewportWScalingStateCreateInfoNV.BuffercallocStack(int capacity)Deprecated.static VkPipelineViewportWScalingStateCreateInfoNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPipelineViewportWScalingStateCreateInfoNVcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 VkPipelineViewportWScalingStateCreateInfoNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportWScalingStateCreateInfoNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPipelineViewportWScalingStateCreateInfoNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPipelineViewportWScalingStateCreateInfoNVinstance allocated on the specifiedMemoryStack.static VkPipelineViewportWScalingStateCreateInfoNVmallocStack()Deprecated.static VkPipelineViewportWScalingStateCreateInfoNV.BuffermallocStack(int capacity)Deprecated.static VkPipelineViewportWScalingStateCreateInfoNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPipelineViewportWScalingStateCreateInfoNVmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()NULLor a pointer to a structure extending this structure.VkPipelineViewportWScalingStateCreateInfoNVpNext(long value)Sets the specified value to thepNext()field.VkViewportWScalingNV.BufferpViewportWScalings()a pointer to an array ofVkViewportWScalingNVstructures defining the W scaling parameters for the corresponding viewports.VkPipelineViewportWScalingStateCreateInfoNVpViewportWScalings(VkViewportWScalingNV.Buffer value)Sets the address of the specifiedVkViewportWScalingNV.Bufferto thepViewportWScalings()field.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()the type of this structure.VkPipelineViewportWScalingStateCreateInfoNVsType(int value)Sets the specified value to thesType()field.VkPipelineViewportWScalingStateCreateInfoNVsType$Default()Sets theSTRUCTURE_TYPE_PIPELINE_VIEWPORT_W_SCALING_STATE_CREATE_INFO_NVvalue to thesType()field.intviewportCount()the number of viewports used by W scaling, and must match the number of viewports in the pipeline if viewport W scaling is enabled.VkPipelineViewportWScalingStateCreateInfoNVviewportCount(int value)Sets the specified value to theviewportCount()field.booleanviewportWScalingEnable()controls whether viewport W scaling is enabled.VkPipelineViewportWScalingStateCreateInfoNVviewportWScalingEnable(boolean value)Sets the specified value to theviewportWScalingEnable()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
viewportWScalingEnable
public boolean viewportWScalingEnable()
controls whether viewport W scaling is enabled.
-
viewportCount
public int 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
@Nullable public VkViewportWScalingNV.Buffer pViewportWScalings()
a pointer to an array ofVkViewportWScalingNVstructures defining the W scaling parameters for the corresponding viewports. If the viewport W scaling state is dynamic, this member is ignored.
-
sType
public VkPipelineViewportWScalingStateCreateInfoNV sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPipelineViewportWScalingStateCreateInfoNV sType$Default()
Sets theSTRUCTURE_TYPE_PIPELINE_VIEWPORT_W_SCALING_STATE_CREATE_INFO_NVvalue 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.Bufferto 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 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
@Deprecated public static VkPipelineViewportWScalingStateCreateInfoNV mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineViewportWScalingStateCreateInfoNV callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineViewportWScalingStateCreateInfoNV mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineViewportWScalingStateCreateInfoNV callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineViewportWScalingStateCreateInfoNV.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPipelineViewportWScalingStateCreateInfoNV.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPipelineViewportWScalingStateCreateInfoNV.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 VkPipelineViewportWScalingStateCreateInfoNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPipelineViewportWScalingStateCreateInfoNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPipelineViewportWScalingStateCreateInfoNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPipelineViewportWScalingStateCreateInfoNV calloc(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
-
malloc
public static VkPipelineViewportWScalingStateCreateInfoNV.Buffer malloc(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
-
calloc
public static VkPipelineViewportWScalingStateCreateInfoNV.Buffer calloc(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.
-
-