Package org.lwjgl.vulkan
Class VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesKHR
public class VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing whether the implementation can do depth and stencil image barriers separately.Description
If the
VkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceSeparateDepthStencilLayoutsFeaturescan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures { VkStructureTypesType(); void *pNext(); VkBool32separateDepthStencilLayouts(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.BufferAn array ofVkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXT
SEPARATEDEPTHSTENCILLAYOUTSThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceSeparateDepthStencilLayoutsFeaturescalloc()Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesinstance allocated withmemCalloc.static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSeparateDepthStencilLayoutsFeaturescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceSeparateDepthStencilLayoutsFeaturescreate()Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesinstance allocated withBufferUtils.static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Buffercreate(int capacity)Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceSeparateDepthStencilLayoutsFeaturescreate(long address)Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesinstance for the specified memory address.static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Bufferinstance at the specified memory.static VkPhysicalDeviceSeparateDepthStencilLayoutsFeaturescreateSafe(long address)static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesmalloc()Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesinstance allocated withmemAlloc.static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnseparateDepthStencilLayouts(long struct)Unsafe version ofseparateDepthStencilLayouts().static voidnseparateDepthStencilLayouts(long struct, int value)Unsafe version ofseparateDepthStencilLayouts.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.VkPhysicalDeviceSeparateDepthStencilLayoutsFeaturespNext(long value)Sets the specified value to thepNext()field.booleanseparateDepthStencilLayouts()indicates whether the implementation supports aVkImageMemoryBarrierfor a depth/stencil image with only one ofIMAGE_ASPECT_DEPTH_BITorIMAGE_ASPECT_STENCIL_BITset, and whetherIMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL,IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL,IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL, orIMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMALcan be used.VkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesseparateDepthStencilLayouts(boolean value)Sets the specified value to theseparateDepthStencilLayouts()field.VkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesset(int sType, long pNext, boolean separateDepthStencilLayouts)Initializes this struct with the specified values.VkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesset(VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceSeparateDepthStencilLayoutsFeaturessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceSeparateDepthStencilLayoutsFeaturessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SEPARATE_DEPTH_STENCIL_LAYOUTS_FEATURESvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures
public VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesinstance 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.
-
separateDepthStencilLayouts
public boolean separateDepthStencilLayouts()
indicates whether the implementation supports aVkImageMemoryBarrierfor a depth/stencil image with only one ofIMAGE_ASPECT_DEPTH_BITorIMAGE_ASPECT_STENCIL_BITset, and whetherIMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL,IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL,IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL, orIMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMALcan be used.
-
sType
public VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_SEPARATE_DEPTH_STENCIL_LAYOUTS_FEATURESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures pNext(long value)
Sets the specified value to thepNext()field.
-
separateDepthStencilLayouts
public VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures separateDepthStencilLayouts(boolean value)
Sets the specified value to theseparateDepthStencilLayouts()field.
-
set
public VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures set(int sType, long pNext, boolean separateDepthStencilLayouts)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures set(VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures malloc()
Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures calloc()
Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures create()
Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures create(long address)
Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures createSafe(long address)
-
malloc
public static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Buffer create(int capacity)
Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceSeparateDepthStencilLayoutsFeatures.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().
-
nseparateDepthStencilLayouts
public static int nseparateDepthStencilLayouts(long struct)
Unsafe version ofseparateDepthStencilLayouts().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nseparateDepthStencilLayouts
public static void nseparateDepthStencilLayouts(long struct, int value)Unsafe version ofseparateDepthStencilLayouts.
-
-