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.NativeResourceStructure describing multiview features that can be supported by an implementation.Description
If the
VkPhysicalDeviceMultiviewFeaturesstructure is included in thepNextchain ofVkPhysicalDeviceFeatures2, it is filled with values indicating whether each feature is supported.VkPhysicalDeviceMultiviewFeaturescan also be used in thepNextchain ofVkDeviceCreateInfoto enable the features.Valid Usage
- If
multiviewGeometryShaderis enabled thenmultiviewmust also be enabled. - If
multiviewTessellationShaderis enabled thenmultiviewmust also be enabled.
Valid Usage (Implicit)
sTypemust 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 classVkPhysicalDeviceMultiviewFeatures.BufferAn array ofVkPhysicalDeviceMultiviewFeaturesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMULTIVIEW
MULTIVIEWGEOMETRYSHADER
MULTIVIEWTESSELLATIONSHADER
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceMultiviewFeatures(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceMultiviewFeaturesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceMultiviewFeaturescalloc()Returns a newVkPhysicalDeviceMultiviewFeaturesinstance allocated withmemCalloc.static VkPhysicalDeviceMultiviewFeatures.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceMultiviewFeatures.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceMultiviewFeaturescallocStack()Returns a newVkPhysicalDeviceMultiviewFeaturesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceMultiviewFeatures.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceMultiviewFeatures.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceMultiviewFeatures.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceMultiviewFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceMultiviewFeaturescallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceMultiviewFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceMultiviewFeaturescreate()Returns a newVkPhysicalDeviceMultiviewFeaturesinstance allocated withBufferUtils.static VkPhysicalDeviceMultiviewFeatures.Buffercreate(int capacity)Returns a newVkPhysicalDeviceMultiviewFeatures.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceMultiviewFeaturescreate(long address)Returns a newVkPhysicalDeviceMultiviewFeaturesinstance for the specified memory address.static VkPhysicalDeviceMultiviewFeatures.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceMultiviewFeatures.Bufferinstance at the specified memory.static VkPhysicalDeviceMultiviewFeaturescreateSafe(long address)static VkPhysicalDeviceMultiviewFeatures.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceMultiviewFeaturesmalloc()Returns a newVkPhysicalDeviceMultiviewFeaturesinstance allocated withmemAlloc.static VkPhysicalDeviceMultiviewFeatures.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceMultiviewFeatures.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceMultiviewFeaturesmallocStack()Returns a newVkPhysicalDeviceMultiviewFeaturesinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceMultiviewFeatures.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceMultiviewFeatures.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceMultiviewFeatures.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceMultiviewFeatures.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceMultiviewFeaturesmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceMultiviewFeaturesinstance allocated on the specifiedMemoryStack.booleanmultiview()Returns the value of themultiviewfield.VkPhysicalDeviceMultiviewFeaturesmultiview(boolean value)Sets the specified value to themultiviewfield.booleanmultiviewGeometryShader()Returns the value of themultiviewGeometryShaderfield.VkPhysicalDeviceMultiviewFeaturesmultiviewGeometryShader(boolean value)Sets the specified value to themultiviewGeometryShaderfield.booleanmultiviewTessellationShader()Returns the value of themultiviewTessellationShaderfield.VkPhysicalDeviceMultiviewFeaturesmultiviewTessellationShader(boolean value)Sets the specified value to themultiviewTessellationShaderfield.static intnmultiview(long struct)Unsafe version ofmultiview().static voidnmultiview(long struct, int value)Unsafe version ofmultiview.static intnmultiviewGeometryShader(long struct)Unsafe version ofmultiviewGeometryShader().static voidnmultiviewGeometryShader(long struct, int value)Unsafe version ofmultiviewGeometryShader.static intnmultiviewTessellationShader(long struct)Unsafe version ofmultiviewTessellationShader().static voidnmultiviewTessellationShader(long struct, int value)Unsafe version ofmultiviewTessellationShader.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.longpNext()Returns the value of thepNextfield.VkPhysicalDeviceMultiviewFeaturespNext(long value)Sets the specified value to thepNextfield.VkPhysicalDeviceMultiviewFeaturesset(int sType, long pNext, boolean multiview, boolean multiviewGeometryShader, boolean multiviewTessellationShader)Initializes this struct with the specified values.VkPhysicalDeviceMultiviewFeaturesset(VkPhysicalDeviceMultiviewFeatures src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPhysicalDeviceMultiviewFeaturessType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkPhysicalDeviceMultiviewFeatures
public VkPhysicalDeviceMultiviewFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceMultiviewFeaturesinstance 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.
-
multiview
public boolean multiview()
Returns the value of themultiviewfield.
-
multiviewGeometryShader
public boolean multiviewGeometryShader()
Returns the value of themultiviewGeometryShaderfield.
-
multiviewTessellationShader
public boolean multiviewTessellationShader()
Returns the value of themultiviewTessellationShaderfield.
-
sType
public VkPhysicalDeviceMultiviewFeatures sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDeviceMultiviewFeatures pNext(long value)
Sets the specified value to thepNextfield.
-
multiview
public VkPhysicalDeviceMultiviewFeatures multiview(boolean value)
Sets the specified value to themultiviewfield.
-
multiviewGeometryShader
public VkPhysicalDeviceMultiviewFeatures multiviewGeometryShader(boolean value)
Sets the specified value to themultiviewGeometryShaderfield.
-
multiviewTessellationShader
public VkPhysicalDeviceMultiviewFeatures multiviewTessellationShader(boolean value)
Sets the specified value to themultiviewTessellationShaderfield.
-
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 newVkPhysicalDeviceMultiviewFeaturesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceMultiviewFeatures calloc()
Returns a newVkPhysicalDeviceMultiviewFeaturesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceMultiviewFeatures create()
Returns a newVkPhysicalDeviceMultiviewFeaturesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceMultiviewFeatures create(long address)
Returns a newVkPhysicalDeviceMultiviewFeaturesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceMultiviewFeatures createSafe(long address)
-
malloc
public static VkPhysicalDeviceMultiviewFeatures.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceMultiviewFeatures.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceMultiviewFeatures.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceMultiviewFeatures.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceMultiviewFeatures.Buffer create(int capacity)
Returns a newVkPhysicalDeviceMultiviewFeatures.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceMultiviewFeatures.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceMultiviewFeatures.Bufferinstance 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 newVkPhysicalDeviceMultiviewFeaturesinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceMultiviewFeatures callocStack()
Returns a newVkPhysicalDeviceMultiviewFeaturesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceMultiviewFeatures mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMultiviewFeaturesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceMultiviewFeatures callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceMultiviewFeaturesinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceMultiviewFeatures.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceMultiviewFeatures.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.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().
-
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.
-
-