Package org.lwjgl.vulkan
Class VkPhysicalDeviceInheritedViewportScissorFeaturesNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceInheritedViewportScissorFeaturesNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceInheritedViewportScissorFeaturesNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing the viewport scissor inheritance behavior for an implementation.Description
If the
VkPhysicalDeviceInheritedViewportScissorFeaturesNVstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceInheritedViewportScissorFeaturesNVcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceInheritedViewportScissorFeaturesNV { VkStructureTypesType(); void *pNext(); VkBool32inheritedViewportScissor2D(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceInheritedViewportScissorFeaturesNV.BufferAn array ofVkPhysicalDeviceInheritedViewportScissorFeaturesNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intINHERITEDVIEWPORTSCISSOR2D
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceInheritedViewportScissorFeaturesNV(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceInheritedViewportScissorFeaturesNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceInheritedViewportScissorFeaturesNVcalloc()Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNVinstance allocated withmemCalloc.static VkPhysicalDeviceInheritedViewportScissorFeaturesNV.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNV.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceInheritedViewportScissorFeaturesNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceInheritedViewportScissorFeaturesNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceInheritedViewportScissorFeaturesNVcreate()Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNVinstance allocated withBufferUtils.static VkPhysicalDeviceInheritedViewportScissorFeaturesNV.Buffercreate(int capacity)Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNV.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceInheritedViewportScissorFeaturesNVcreate(long address)Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNVinstance for the specified memory address.static VkPhysicalDeviceInheritedViewportScissorFeaturesNV.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceInheritedViewportScissorFeaturesNV.Bufferinstance at the specified memory.static VkPhysicalDeviceInheritedViewportScissorFeaturesNVcreateSafe(long address)static VkPhysicalDeviceInheritedViewportScissorFeaturesNV.BuffercreateSafe(long address, int capacity)booleaninheritedViewportScissor2D()indicates whether secondary command buffers can inherit most of the dynamic state affected byDYNAMIC_STATE_VIEWPORT_WITH_COUNT,DYNAMIC_STATE_SCISSOR_WITH_COUNT,DYNAMIC_STATE_DISCARD_RECTANGLE_EXT,DYNAMIC_STATE_VIEWPORTorDYNAMIC_STATE_SCISSOR, from a primary command buffer.VkPhysicalDeviceInheritedViewportScissorFeaturesNVinheritedViewportScissor2D(boolean value)Sets the specified value to theinheritedViewportScissor2D()field.static VkPhysicalDeviceInheritedViewportScissorFeaturesNVmalloc()Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNVinstance allocated withmemAlloc.static VkPhysicalDeviceInheritedViewportScissorFeaturesNV.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNV.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceInheritedViewportScissorFeaturesNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceInheritedViewportScissorFeaturesNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNVinstance allocated on the specifiedMemoryStack.static intninheritedViewportScissor2D(long struct)Unsafe version ofinheritedViewportScissor2D().static voidninheritedViewportScissor2D(long struct, int value)Unsafe version ofinheritedViewportScissor2D.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()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceInheritedViewportScissorFeaturesNVpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceInheritedViewportScissorFeaturesNVset(int sType, long pNext, boolean inheritedViewportScissor2D)Initializes this struct with the specified values.VkPhysicalDeviceInheritedViewportScissorFeaturesNVset(VkPhysicalDeviceInheritedViewportScissorFeaturesNV src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceInheritedViewportScissorFeaturesNVsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceInheritedViewportScissorFeaturesNVsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_INHERITED_VIEWPORT_SCISSOR_FEATURES_NVvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceInheritedViewportScissorFeaturesNV
public VkPhysicalDeviceInheritedViewportScissorFeaturesNV(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceInheritedViewportScissorFeaturesNVinstance 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.
-
inheritedViewportScissor2D
public boolean inheritedViewportScissor2D()
indicates whether secondary command buffers can inherit most of the dynamic state affected byDYNAMIC_STATE_VIEWPORT_WITH_COUNT,DYNAMIC_STATE_SCISSOR_WITH_COUNT,DYNAMIC_STATE_DISCARD_RECTANGLE_EXT,DYNAMIC_STATE_VIEWPORTorDYNAMIC_STATE_SCISSOR, from a primary command buffer.
-
sType
public VkPhysicalDeviceInheritedViewportScissorFeaturesNV sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceInheritedViewportScissorFeaturesNV sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_INHERITED_VIEWPORT_SCISSOR_FEATURES_NVvalue to thesType()field.
-
pNext
public VkPhysicalDeviceInheritedViewportScissorFeaturesNV pNext(long value)
Sets the specified value to thepNext()field.
-
inheritedViewportScissor2D
public VkPhysicalDeviceInheritedViewportScissorFeaturesNV inheritedViewportScissor2D(boolean value)
Sets the specified value to theinheritedViewportScissor2D()field.
-
set
public VkPhysicalDeviceInheritedViewportScissorFeaturesNV set(int sType, long pNext, boolean inheritedViewportScissor2D)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceInheritedViewportScissorFeaturesNV set(VkPhysicalDeviceInheritedViewportScissorFeaturesNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceInheritedViewportScissorFeaturesNV malloc()
Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceInheritedViewportScissorFeaturesNV calloc()
Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceInheritedViewportScissorFeaturesNV create()
Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNVinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceInheritedViewportScissorFeaturesNV create(long address)
Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceInheritedViewportScissorFeaturesNV createSafe(long address)
-
malloc
public static VkPhysicalDeviceInheritedViewportScissorFeaturesNV.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceInheritedViewportScissorFeaturesNV.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceInheritedViewportScissorFeaturesNV.Buffer create(int capacity)
Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceInheritedViewportScissorFeaturesNV.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceInheritedViewportScissorFeaturesNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceInheritedViewportScissorFeaturesNV.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceInheritedViewportScissorFeaturesNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceInheritedViewportScissorFeaturesNV calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceInheritedViewportScissorFeaturesNV.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceInheritedViewportScissorFeaturesNV.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceInheritedViewportScissorFeaturesNV.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().
-
ninheritedViewportScissor2D
public static int ninheritedViewportScissor2D(long struct)
Unsafe version ofinheritedViewportScissor2D().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ninheritedViewportScissor2D
public static void ninheritedViewportScissor2D(long struct, int value)Unsafe version ofinheritedViewportScissor2D.
-
-