Package org.lwjgl.vulkan
Class VkPhysicalDeviceMultiviewFeatures
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceMultiviewFeatures
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceMultiviewFeaturesKHR
public class VkPhysicalDeviceMultiviewFeatures extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure describing multiview features that can be supported by an implementation.Description
If the
VkPhysicalDeviceMultiviewFeatures
structure is included in thepNext
chain ofVkPhysicalDeviceFeatures2
, it is filled with values indicating whether each feature is supported.VkPhysicalDeviceMultiviewFeatures
can also be used in thepNext
chain ofVkDeviceCreateInfo
to enable the features.Valid Usage
- If
multiviewGeometryShader
is enabled thenmultiview
must also be enabled. - If
multiviewTessellationShader
is enabled thenmultiview
must also be enabled.
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_FEATURES
Member documentation
multiview
– specifies whether the implementation supports multiview rendering within a render pass. If this feature is not enabled, the view mask of each subpass must always be zero.multiviewGeometryShader
– specifies whether the implementation supports multiview rendering within a render pass, with geometry shaders. If this feature is not enabled, then a pipeline compiled against a subpass with a non-zero view mask must not include a geometry shader.multiviewTessellationShader
– specifies whether the implementation supports multiview rendering within a render pass, with tessellation shaders. If this feature is not enabled, then a pipeline compiled against a subpass with a non-zero view mask must not include any tessellation shaders.
Layout
struct VkPhysicalDeviceMultiviewFeatures { VkStructureType sType; void * pNext; VkBool32 multiview; VkBool32 multiviewGeometryShader; VkBool32 multiviewTessellationShader; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkPhysicalDeviceMultiviewFeatures.Buffer
An array ofVkPhysicalDeviceMultiviewFeatures
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
MULTIVIEW
MULTIVIEWGEOMETRYSHADER
MULTIVIEWTESSELLATIONSHADER
PNEXTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceMultiviewFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceMultiviewFeatures
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 VkPhysicalDeviceMultiviewFeatures
calloc()
Returns a newVkPhysicalDeviceMultiviewFeatures
instance allocated withmemCalloc
.static VkPhysicalDeviceMultiviewFeatures.Buffer
calloc(int capacity)
Returns a newVkPhysicalDeviceMultiviewFeatures.Buffer
instance allocated withmemCalloc
.static VkPhysicalDeviceMultiviewFeatures
callocStack()
Returns a newVkPhysicalDeviceMultiviewFeatures
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceMultiviewFeatures.Buffer
callocStack(int capacity)
Returns a newVkPhysicalDeviceMultiviewFeatures.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceMultiviewFeatures.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMultiviewFeatures.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceMultiviewFeatures
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMultiviewFeatures
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceMultiviewFeatures
create()
Returns a newVkPhysicalDeviceMultiviewFeatures
instance allocated withBufferUtils
.static VkPhysicalDeviceMultiviewFeatures.Buffer
create(int capacity)
Returns a newVkPhysicalDeviceMultiviewFeatures.Buffer
instance allocated withBufferUtils
.static VkPhysicalDeviceMultiviewFeatures
create(long address)
Returns a newVkPhysicalDeviceMultiviewFeatures
instance for the specified memory address.static VkPhysicalDeviceMultiviewFeatures.Buffer
create(long address, int capacity)
Create aVkPhysicalDeviceMultiviewFeatures.Buffer
instance at the specified memory.static VkPhysicalDeviceMultiviewFeatures
createSafe(long address)
static VkPhysicalDeviceMultiviewFeatures.Buffer
createSafe(long address, int capacity)
static VkPhysicalDeviceMultiviewFeatures
malloc()
Returns a newVkPhysicalDeviceMultiviewFeatures
instance allocated withmemAlloc
.static VkPhysicalDeviceMultiviewFeatures.Buffer
malloc(int capacity)
Returns a newVkPhysicalDeviceMultiviewFeatures.Buffer
instance allocated withmemAlloc
.static VkPhysicalDeviceMultiviewFeatures
mallocStack()
Returns a newVkPhysicalDeviceMultiviewFeatures
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceMultiviewFeatures.Buffer
mallocStack(int capacity)
Returns a newVkPhysicalDeviceMultiviewFeatures.Buffer
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceMultiviewFeatures.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMultiviewFeatures.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceMultiviewFeatures
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMultiviewFeatures
instance allocated on the specifiedMemoryStack
.boolean
multiview()
Returns the value of themultiview
field.VkPhysicalDeviceMultiviewFeatures
multiview(boolean value)
Sets the specified value to themultiview
field.boolean
multiviewGeometryShader()
Returns the value of themultiviewGeometryShader
field.VkPhysicalDeviceMultiviewFeatures
multiviewGeometryShader(boolean value)
Sets the specified value to themultiviewGeometryShader
field.boolean
multiviewTessellationShader()
Returns the value of themultiviewTessellationShader
field.VkPhysicalDeviceMultiviewFeatures
multiviewTessellationShader(boolean value)
Sets the specified value to themultiviewTessellationShader
field.static int
nmultiview(long struct)
Unsafe version ofmultiview()
.static void
nmultiview(long struct, int value)
Unsafe version ofmultiview
.static int
nmultiviewGeometryShader(long struct)
Unsafe version ofmultiviewGeometryShader()
.static void
nmultiviewGeometryShader(long struct, int value)
Unsafe version ofmultiviewGeometryShader
.static int
nmultiviewTessellationShader(long struct)
Unsafe version ofmultiviewTessellationShader()
.static void
nmultiviewTessellationShader(long struct, int value)
Unsafe version ofmultiviewTessellationShader
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
pNext()
Returns the value of thepNext
field.VkPhysicalDeviceMultiviewFeatures
pNext(long value)
Sets the specified value to thepNext
field.VkPhysicalDeviceMultiviewFeatures
set(int sType, long pNext, boolean multiview, boolean multiviewGeometryShader, boolean multiviewTessellationShader)
Initializes this struct with the specified values.VkPhysicalDeviceMultiviewFeatures
set(VkPhysicalDeviceMultiviewFeatures src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkPhysicalDeviceMultiviewFeatures
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceMultiviewFeatures
public VkPhysicalDeviceMultiviewFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceMultiviewFeatures
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.
-
multiview
public boolean multiview()
Returns the value of themultiview
field.
-
multiviewGeometryShader
public boolean multiviewGeometryShader()
Returns the value of themultiviewGeometryShader
field.
-
multiviewTessellationShader
public boolean multiviewTessellationShader()
Returns the value of themultiviewTessellationShader
field.
-
sType
public VkPhysicalDeviceMultiviewFeatures sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkPhysicalDeviceMultiviewFeatures pNext(long value)
Sets the specified value to thepNext
field.
-
multiview
public VkPhysicalDeviceMultiviewFeatures multiview(boolean value)
Sets the specified value to themultiview
field.
-
multiviewGeometryShader
public VkPhysicalDeviceMultiviewFeatures multiviewGeometryShader(boolean value)
Sets the specified value to themultiviewGeometryShader
field.
-
multiviewTessellationShader
public VkPhysicalDeviceMultiviewFeatures multiviewTessellationShader(boolean value)
Sets the specified value to themultiviewTessellationShader
field.
-
set
public VkPhysicalDeviceMultiviewFeatures set(int sType, long pNext, boolean multiview, boolean multiviewGeometryShader, boolean multiviewTessellationShader)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceMultiviewFeatures set(VkPhysicalDeviceMultiviewFeatures src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceMultiviewFeatures malloc()
Returns a newVkPhysicalDeviceMultiviewFeatures
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceMultiviewFeatures calloc()
Returns a newVkPhysicalDeviceMultiviewFeatures
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceMultiviewFeatures create()
Returns a newVkPhysicalDeviceMultiviewFeatures
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceMultiviewFeatures create(long address)
Returns a newVkPhysicalDeviceMultiviewFeatures
instance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceMultiviewFeatures createSafe(long address)
-
malloc
public static VkPhysicalDeviceMultiviewFeatures.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceMultiviewFeatures.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceMultiviewFeatures.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceMultiviewFeatures.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceMultiviewFeatures.Buffer create(int capacity)
Returns a newVkPhysicalDeviceMultiviewFeatures.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceMultiviewFeatures.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceMultiviewFeatures.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceMultiviewFeatures.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceMultiviewFeatures mallocStack()
Returns a newVkPhysicalDeviceMultiviewFeatures
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceMultiviewFeatures callocStack()
Returns a newVkPhysicalDeviceMultiviewFeatures
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceMultiviewFeatures mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMultiviewFeatures
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceMultiviewFeatures callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMultiviewFeatures
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceMultiviewFeatures.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceMultiviewFeatures.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceMultiviewFeatures.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceMultiviewFeatures.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceMultiviewFeatures.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMultiviewFeatures.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceMultiviewFeatures.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMultiviewFeatures.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()
.
-
nmultiview
public static int nmultiview(long struct)
Unsafe version ofmultiview()
.
-
nmultiviewGeometryShader
public static int nmultiviewGeometryShader(long struct)
Unsafe version ofmultiviewGeometryShader()
.
-
nmultiviewTessellationShader
public static int nmultiviewTessellationShader(long struct)
Unsafe version ofmultiviewTessellationShader()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
nmultiview
public static void nmultiview(long struct, int value)
Unsafe version ofmultiview
.
-
nmultiviewGeometryShader
public static void nmultiviewGeometryShader(long struct, int value)
Unsafe version ofmultiviewGeometryShader
.
-
nmultiviewTessellationShader
public static void nmultiviewTessellationShader(long struct, int value)
Unsafe version ofmultiviewTessellationShader
.
-
-