Package org.lwjgl.vulkan
Class VkPhysicalDeviceDepthStencilResolveProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceDepthStencilResolveProperties
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceDepthStencilResolvePropertiesKHR
public class VkPhysicalDeviceDepthStencilResolveProperties extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing depth/stencil resolve properties that can be supported by an implementation.Description
If the
VkPhysicalDeviceDepthStencilResolvePropertiesstructure is included in thepNextchain of theVkPhysicalDeviceProperties2structure passed toGetPhysicalDeviceProperties2, it is filled in with each corresponding implementation-dependent property.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceDepthStencilResolveProperties { VkStructureTypesType(); void *pNext(); VkResolveModeFlagssupportedDepthResolveModes(); VkResolveModeFlagssupportedStencilResolveModes(); VkBool32independentResolveNone(); VkBool32independentResolve(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceDepthStencilResolveProperties.BufferAn array ofVkPhysicalDeviceDepthStencilResolvePropertiesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intINDEPENDENTRESOLVE
INDEPENDENTRESOLVENONE
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
SUPPORTEDDEPTHRESOLVEMODES
SUPPORTEDSTENCILRESOLVEMODESThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceDepthStencilResolveProperties(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceDepthStencilResolvePropertiesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceDepthStencilResolvePropertiescalloc()Returns a newVkPhysicalDeviceDepthStencilResolvePropertiesinstance allocated withmemCalloc.static VkPhysicalDeviceDepthStencilResolveProperties.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceDepthStencilResolveProperties.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceDepthStencilResolveProperties.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceDepthStencilResolveProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceDepthStencilResolvePropertiescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceDepthStencilResolvePropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceDepthStencilResolvePropertiescreate()Returns a newVkPhysicalDeviceDepthStencilResolvePropertiesinstance allocated withBufferUtils.static VkPhysicalDeviceDepthStencilResolveProperties.Buffercreate(int capacity)Returns a newVkPhysicalDeviceDepthStencilResolveProperties.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceDepthStencilResolvePropertiescreate(long address)Returns a newVkPhysicalDeviceDepthStencilResolvePropertiesinstance for the specified memory address.static VkPhysicalDeviceDepthStencilResolveProperties.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceDepthStencilResolveProperties.Bufferinstance at the specified memory.static VkPhysicalDeviceDepthStencilResolvePropertiescreateSafe(long address)static VkPhysicalDeviceDepthStencilResolveProperties.BuffercreateSafe(long address, int capacity)booleanindependentResolve()TRUEif the implementation supports all combinations of the supported depth and stencil resolve modes, including setting either depth or stencil resolve mode toRESOLVE_MODE_NONE.booleanindependentResolveNone()TRUEif the implementation supports setting the depth and stencil resolve modes to different values when one of those modes isRESOLVE_MODE_NONE.static VkPhysicalDeviceDepthStencilResolvePropertiesmalloc()Returns a newVkPhysicalDeviceDepthStencilResolvePropertiesinstance allocated withmemAlloc.static VkPhysicalDeviceDepthStencilResolveProperties.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceDepthStencilResolveProperties.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceDepthStencilResolveProperties.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceDepthStencilResolveProperties.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceDepthStencilResolvePropertiesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceDepthStencilResolvePropertiesinstance allocated on the specifiedMemoryStack.static intnindependentResolve(long struct)Unsafe version ofindependentResolve().static intnindependentResolveNone(long struct)Unsafe version ofindependentResolveNone().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.static intnsupportedDepthResolveModes(long struct)Unsafe version ofsupportedDepthResolveModes().static intnsupportedStencilResolveModes(long struct)Unsafe version ofsupportedStencilResolveModes().longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceDepthStencilResolvePropertiespNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceDepthStencilResolvePropertiesset(int sType, long pNext)Initializes this struct with the specified values.VkPhysicalDeviceDepthStencilResolvePropertiesset(VkPhysicalDeviceDepthStencilResolveProperties src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceDepthStencilResolvePropertiessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceDepthStencilResolvePropertiessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_STENCIL_RESOLVE_PROPERTIESvalue to thesType()field.intsupportedDepthResolveModes()a bitmask ofVkResolveModeFlagBitsindicating the set of supported depth resolve modes.intsupportedStencilResolveModes()a bitmask ofVkResolveModeFlagBitsindicating the set of supported stencil resolve modes.
-
-
-
Constructor Detail
-
VkPhysicalDeviceDepthStencilResolveProperties
public VkPhysicalDeviceDepthStencilResolveProperties(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceDepthStencilResolvePropertiesinstance 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.
-
supportedDepthResolveModes
public int supportedDepthResolveModes()
a bitmask ofVkResolveModeFlagBitsindicating the set of supported depth resolve modes.RESOLVE_MODE_SAMPLE_ZERO_BITmust be included in the set but implementations may support additional modes.
-
supportedStencilResolveModes
public int supportedStencilResolveModes()
a bitmask ofVkResolveModeFlagBitsindicating the set of supported stencil resolve modes.RESOLVE_MODE_SAMPLE_ZERO_BITmust be included in the set but implementations may support additional modes.RESOLVE_MODE_AVERAGE_BITmust not be included in the set.
-
independentResolveNone
public boolean independentResolveNone()
TRUEif the implementation supports setting the depth and stencil resolve modes to different values when one of those modes isRESOLVE_MODE_NONE. Otherwise the implementation only supports setting both modes to the same value.
-
independentResolve
public boolean independentResolve()
TRUEif the implementation supports all combinations of the supported depth and stencil resolve modes, including setting either depth or stencil resolve mode toRESOLVE_MODE_NONE. An implementation that supportsindependentResolvemust also supportindependentResolveNone.
-
sType
public VkPhysicalDeviceDepthStencilResolveProperties sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceDepthStencilResolveProperties sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_STENCIL_RESOLVE_PROPERTIESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceDepthStencilResolveProperties pNext(long value)
Sets the specified value to thepNext()field.
-
set
public VkPhysicalDeviceDepthStencilResolveProperties set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceDepthStencilResolveProperties set(VkPhysicalDeviceDepthStencilResolveProperties src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceDepthStencilResolveProperties malloc()
Returns a newVkPhysicalDeviceDepthStencilResolvePropertiesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceDepthStencilResolveProperties calloc()
Returns a newVkPhysicalDeviceDepthStencilResolvePropertiesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceDepthStencilResolveProperties create()
Returns a newVkPhysicalDeviceDepthStencilResolvePropertiesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceDepthStencilResolveProperties create(long address)
Returns a newVkPhysicalDeviceDepthStencilResolvePropertiesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceDepthStencilResolveProperties createSafe(long address)
-
malloc
public static VkPhysicalDeviceDepthStencilResolveProperties.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceDepthStencilResolveProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceDepthStencilResolveProperties.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceDepthStencilResolveProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceDepthStencilResolveProperties.Buffer create(int capacity)
Returns a newVkPhysicalDeviceDepthStencilResolveProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceDepthStencilResolveProperties.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceDepthStencilResolveProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceDepthStencilResolveProperties.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceDepthStencilResolveProperties malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDepthStencilResolvePropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceDepthStencilResolveProperties calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDepthStencilResolvePropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceDepthStencilResolveProperties.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDepthStencilResolveProperties.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceDepthStencilResolveProperties.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceDepthStencilResolveProperties.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().
-
nsupportedDepthResolveModes
public static int nsupportedDepthResolveModes(long struct)
Unsafe version ofsupportedDepthResolveModes().
-
nsupportedStencilResolveModes
public static int nsupportedStencilResolveModes(long struct)
Unsafe version ofsupportedStencilResolveModes().
-
nindependentResolveNone
public static int nindependentResolveNone(long struct)
Unsafe version ofindependentResolveNone().
-
nindependentResolve
public static int nindependentResolve(long struct)
Unsafe version ofindependentResolve().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-