Class VkMultiviewPerViewAttributesInfoNVX
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkMultiviewPerViewAttributesInfoNVX
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkMultiviewPerViewAttributesInfoNVX extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying the multiview per-attribute properties.Description
When dynamic render pass instances are being used, instead of specifying
SUBPASS_DESCRIPTION_PER_VIEW_ATTRIBUTES_BIT_NVXorSUBPASS_DESCRIPTION_PER_VIEW_POSITION_X_ONLY_BIT_NVXin the subpass description flags, the per-attibute properties of the render pass instance must be specified by theVkMultiviewPerViewAttributesInfoNVXstructure Include theVkMultiviewPerViewAttributesInfoNVXstructure in thepNextchain ofVkGraphicsPipelineCreateInfowhen creating a graphics pipeline for dynamic rendering,VkRenderingInfowhen starting a dynamic render pass instance, andVkCommandBufferInheritanceInfowhen specifying the dynamic render pass instance parameters for secondary command buffers.Valid Usage
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_MULTIVIEW_PER_VIEW_ATTRIBUTES_INFO_NVX
Layout
struct VkMultiviewPerViewAttributesInfoNVX { VkStructureTypesType(); void const *pNext(); VkBool32perViewAttributes(); VkBool32perViewAttributesPositionXOnly(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkMultiviewPerViewAttributesInfoNVX.BufferAn array ofVkMultiviewPerViewAttributesInfoNVXstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPERVIEWATTRIBUTES
PERVIEWATTRIBUTESPOSITIONXONLY
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkMultiviewPerViewAttributesInfoNVX(java.nio.ByteBuffer container)Creates aVkMultiviewPerViewAttributesInfoNVXinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkMultiviewPerViewAttributesInfoNVXcalloc()Returns a newVkMultiviewPerViewAttributesInfoNVXinstance allocated withmemCalloc.static VkMultiviewPerViewAttributesInfoNVX.Buffercalloc(int capacity)Returns a newVkMultiviewPerViewAttributesInfoNVX.Bufferinstance allocated withmemCalloc.static VkMultiviewPerViewAttributesInfoNVX.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkMultiviewPerViewAttributesInfoNVX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMultiviewPerViewAttributesInfoNVXcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkMultiviewPerViewAttributesInfoNVXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMultiviewPerViewAttributesInfoNVXcreate()Returns a newVkMultiviewPerViewAttributesInfoNVXinstance allocated withBufferUtils.static VkMultiviewPerViewAttributesInfoNVX.Buffercreate(int capacity)Returns a newVkMultiviewPerViewAttributesInfoNVX.Bufferinstance allocated withBufferUtils.static VkMultiviewPerViewAttributesInfoNVXcreate(long address)Returns a newVkMultiviewPerViewAttributesInfoNVXinstance for the specified memory address.static VkMultiviewPerViewAttributesInfoNVX.Buffercreate(long address, int capacity)Create aVkMultiviewPerViewAttributesInfoNVX.Bufferinstance at the specified memory.static VkMultiviewPerViewAttributesInfoNVXcreateSafe(long address)static VkMultiviewPerViewAttributesInfoNVX.BuffercreateSafe(long address, int capacity)static VkMultiviewPerViewAttributesInfoNVXmalloc()Returns a newVkMultiviewPerViewAttributesInfoNVXinstance allocated withmemAlloc.static VkMultiviewPerViewAttributesInfoNVX.Buffermalloc(int capacity)Returns a newVkMultiviewPerViewAttributesInfoNVX.Bufferinstance allocated withmemAlloc.static VkMultiviewPerViewAttributesInfoNVX.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkMultiviewPerViewAttributesInfoNVX.Bufferinstance allocated on the specifiedMemoryStack.static VkMultiviewPerViewAttributesInfoNVXmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkMultiviewPerViewAttributesInfoNVXinstance allocated on the specifiedMemoryStack.static intnperViewAttributes(long struct)Unsafe version ofperViewAttributes().static voidnperViewAttributes(long struct, int value)Unsafe version ofperViewAttributes.static intnperViewAttributesPositionXOnly(long struct)Unsafe version ofperViewAttributesPositionXOnly().static voidnperViewAttributesPositionXOnly(long struct, int value)Unsafe version ofperViewAttributesPositionXOnly.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.booleanperViewAttributes()specifies that shaders compiled for this pipeline write the attributes for all views in a single invocation of each vertex processing stage.VkMultiviewPerViewAttributesInfoNVXperViewAttributes(boolean value)Sets the specified value to theperViewAttributes()field.booleanperViewAttributesPositionXOnly()specifies that shaders compiled for this pipeline use per-view positions which only differ in value in the x component.VkMultiviewPerViewAttributesInfoNVXperViewAttributesPositionXOnly(boolean value)Sets the specified value to theperViewAttributesPositionXOnly()field.longpNext()NULLor a pointer to a structure extending this structure.VkMultiviewPerViewAttributesInfoNVXpNext(long value)Sets the specified value to thepNext()field.VkMultiviewPerViewAttributesInfoNVXset(int sType, long pNext, boolean perViewAttributes, boolean perViewAttributesPositionXOnly)Initializes this struct with the specified values.VkMultiviewPerViewAttributesInfoNVXset(VkMultiviewPerViewAttributesInfoNVX src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkMultiviewPerViewAttributesInfoNVXsType(int value)Sets the specified value to thesType()field.VkMultiviewPerViewAttributesInfoNVXsType$Default()Sets theSTRUCTURE_TYPE_MULTIVIEW_PER_VIEW_ATTRIBUTES_INFO_NVXvalue to thesType()field.
-
-
-
Constructor Detail
-
VkMultiviewPerViewAttributesInfoNVX
public VkMultiviewPerViewAttributesInfoNVX(java.nio.ByteBuffer container)
Creates aVkMultiviewPerViewAttributesInfoNVXinstance 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.
-
perViewAttributes
public boolean perViewAttributes()
specifies that shaders compiled for this pipeline write the attributes for all views in a single invocation of each vertex processing stage. All pipelines executed within a render pass instance that includes this bit must write per-view attributes to the*PerViewNV[]shader outputs, in addition to the non-per-view (e.g.Position) outputs.
-
perViewAttributesPositionXOnly
public boolean perViewAttributesPositionXOnly()
specifies that shaders compiled for this pipeline use per-view positions which only differ in value in the x component. Per-view viewport mask can also be used.
-
sType
public VkMultiviewPerViewAttributesInfoNVX sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkMultiviewPerViewAttributesInfoNVX sType$Default()
Sets theSTRUCTURE_TYPE_MULTIVIEW_PER_VIEW_ATTRIBUTES_INFO_NVXvalue to thesType()field.
-
pNext
public VkMultiviewPerViewAttributesInfoNVX pNext(long value)
Sets the specified value to thepNext()field.
-
perViewAttributes
public VkMultiviewPerViewAttributesInfoNVX perViewAttributes(boolean value)
Sets the specified value to theperViewAttributes()field.
-
perViewAttributesPositionXOnly
public VkMultiviewPerViewAttributesInfoNVX perViewAttributesPositionXOnly(boolean value)
Sets the specified value to theperViewAttributesPositionXOnly()field.
-
set
public VkMultiviewPerViewAttributesInfoNVX set(int sType, long pNext, boolean perViewAttributes, boolean perViewAttributesPositionXOnly)
Initializes this struct with the specified values.
-
set
public VkMultiviewPerViewAttributesInfoNVX set(VkMultiviewPerViewAttributesInfoNVX src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkMultiviewPerViewAttributesInfoNVX malloc()
Returns a newVkMultiviewPerViewAttributesInfoNVXinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkMultiviewPerViewAttributesInfoNVX calloc()
Returns a newVkMultiviewPerViewAttributesInfoNVXinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkMultiviewPerViewAttributesInfoNVX create()
Returns a newVkMultiviewPerViewAttributesInfoNVXinstance allocated withBufferUtils.
-
create
public static VkMultiviewPerViewAttributesInfoNVX create(long address)
Returns a newVkMultiviewPerViewAttributesInfoNVXinstance for the specified memory address.
-
createSafe
@Nullable public static VkMultiviewPerViewAttributesInfoNVX createSafe(long address)
-
malloc
public static VkMultiviewPerViewAttributesInfoNVX.Buffer malloc(int capacity)
Returns a newVkMultiviewPerViewAttributesInfoNVX.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkMultiviewPerViewAttributesInfoNVX.Buffer calloc(int capacity)
Returns a newVkMultiviewPerViewAttributesInfoNVX.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkMultiviewPerViewAttributesInfoNVX.Buffer create(int capacity)
Returns a newVkMultiviewPerViewAttributesInfoNVX.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkMultiviewPerViewAttributesInfoNVX.Buffer create(long address, int capacity)
Create aVkMultiviewPerViewAttributesInfoNVX.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkMultiviewPerViewAttributesInfoNVX.Buffer createSafe(long address, int capacity)
-
malloc
public static VkMultiviewPerViewAttributesInfoNVX malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkMultiviewPerViewAttributesInfoNVXinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkMultiviewPerViewAttributesInfoNVX calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkMultiviewPerViewAttributesInfoNVXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkMultiviewPerViewAttributesInfoNVX.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkMultiviewPerViewAttributesInfoNVX.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkMultiviewPerViewAttributesInfoNVX.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkMultiviewPerViewAttributesInfoNVX.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().
-
nperViewAttributes
public static int nperViewAttributes(long struct)
Unsafe version ofperViewAttributes().
-
nperViewAttributesPositionXOnly
public static int nperViewAttributesPositionXOnly(long struct)
Unsafe version ofperViewAttributesPositionXOnly().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nperViewAttributes
public static void nperViewAttributes(long struct, int value)Unsafe version ofperViewAttributes.
-
nperViewAttributesPositionXOnly
public static void nperViewAttributesPositionXOnly(long struct, int value)Unsafe version ofperViewAttributesPositionXOnly.
-
-