Package org.lwjgl.vulkan
Class VkPhysicalDeviceColorWriteEnableFeaturesEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceColorWriteEnableFeaturesEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceColorWriteEnableFeaturesEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing whether writes to color attachments can be enabled and disabled dynamically.Description
If the
VkPhysicalDeviceColorWriteEnableFeaturesEXTstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceColorWriteEnableFeaturesEXTcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceColorWriteEnableFeaturesEXT { VkStructureTypesType(); void *pNext(); VkBool32colorWriteEnable(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceColorWriteEnableFeaturesEXT.BufferAn array ofVkPhysicalDeviceColorWriteEnableFeaturesEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOLORWRITEENABLE
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceColorWriteEnableFeaturesEXT(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceColorWriteEnableFeaturesEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceColorWriteEnableFeaturesEXTcalloc()Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXTinstance allocated withmemCalloc.static VkPhysicalDeviceColorWriteEnableFeaturesEXT.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXT.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceColorWriteEnableFeaturesEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceColorWriteEnableFeaturesEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.booleancolorWriteEnable()indicates that the implementation supports the dynamic stateDYNAMIC_STATE_COLOR_WRITE_ENABLE_EXT.VkPhysicalDeviceColorWriteEnableFeaturesEXTcolorWriteEnable(boolean value)Sets the specified value to thecolorWriteEnable()field.static VkPhysicalDeviceColorWriteEnableFeaturesEXTcreate()Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXTinstance allocated withBufferUtils.static VkPhysicalDeviceColorWriteEnableFeaturesEXT.Buffercreate(int capacity)Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXT.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceColorWriteEnableFeaturesEXTcreate(long address)Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXTinstance for the specified memory address.static VkPhysicalDeviceColorWriteEnableFeaturesEXT.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceColorWriteEnableFeaturesEXT.Bufferinstance at the specified memory.static VkPhysicalDeviceColorWriteEnableFeaturesEXTcreateSafe(long address)static VkPhysicalDeviceColorWriteEnableFeaturesEXT.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceColorWriteEnableFeaturesEXTmalloc()Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXTinstance allocated withmemAlloc.static VkPhysicalDeviceColorWriteEnableFeaturesEXT.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXT.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceColorWriteEnableFeaturesEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceColorWriteEnableFeaturesEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXTinstance allocated on the specifiedMemoryStack.static intncolorWriteEnable(long struct)Unsafe version ofcolorWriteEnable().static voidncolorWriteEnable(long struct, int value)Unsafe version ofcolorWriteEnable.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.VkPhysicalDeviceColorWriteEnableFeaturesEXTpNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceColorWriteEnableFeaturesEXTset(int sType, long pNext, boolean colorWriteEnable)Initializes this struct with the specified values.VkPhysicalDeviceColorWriteEnableFeaturesEXTset(VkPhysicalDeviceColorWriteEnableFeaturesEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceColorWriteEnableFeaturesEXTsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceColorWriteEnableFeaturesEXTsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_COLOR_WRITE_ENABLE_FEATURES_EXTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceColorWriteEnableFeaturesEXT
public VkPhysicalDeviceColorWriteEnableFeaturesEXT(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceColorWriteEnableFeaturesEXTinstance 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.
-
colorWriteEnable
public boolean colorWriteEnable()
indicates that the implementation supports the dynamic stateDYNAMIC_STATE_COLOR_WRITE_ENABLE_EXT.
-
sType
public VkPhysicalDeviceColorWriteEnableFeaturesEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceColorWriteEnableFeaturesEXT sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_COLOR_WRITE_ENABLE_FEATURES_EXTvalue to thesType()field.
-
pNext
public VkPhysicalDeviceColorWriteEnableFeaturesEXT pNext(long value)
Sets the specified value to thepNext()field.
-
colorWriteEnable
public VkPhysicalDeviceColorWriteEnableFeaturesEXT colorWriteEnable(boolean value)
Sets the specified value to thecolorWriteEnable()field.
-
set
public VkPhysicalDeviceColorWriteEnableFeaturesEXT set(int sType, long pNext, boolean colorWriteEnable)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceColorWriteEnableFeaturesEXT set(VkPhysicalDeviceColorWriteEnableFeaturesEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceColorWriteEnableFeaturesEXT malloc()
Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceColorWriteEnableFeaturesEXT calloc()
Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceColorWriteEnableFeaturesEXT create()
Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXTinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceColorWriteEnableFeaturesEXT create(long address)
Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceColorWriteEnableFeaturesEXT createSafe(long address)
-
malloc
public static VkPhysicalDeviceColorWriteEnableFeaturesEXT.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceColorWriteEnableFeaturesEXT.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceColorWriteEnableFeaturesEXT.Buffer create(int capacity)
Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceColorWriteEnableFeaturesEXT.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceColorWriteEnableFeaturesEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceColorWriteEnableFeaturesEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceColorWriteEnableFeaturesEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceColorWriteEnableFeaturesEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceColorWriteEnableFeaturesEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceColorWriteEnableFeaturesEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceColorWriteEnableFeaturesEXT.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().
-
ncolorWriteEnable
public static int ncolorWriteEnable(long struct)
Unsafe version ofcolorWriteEnable().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ncolorWriteEnable
public static void ncolorWriteEnable(long struct, int value)Unsafe version ofcolorWriteEnable.
-
-