Package org.lwjgl.vulkan
Class VkPhysicalDeviceLinearColorAttachmentFeaturesNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceLinearColorAttachmentFeaturesNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceLinearColorAttachmentFeaturesNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing whether Linear Color Attachment rendering is supported by the implementation.Description
If the
VkPhysicalDeviceLinearColorAttachmentFeaturesNVstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceLinearColorAttachmentFeaturesNVcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceLinearColorAttachmentFeaturesNV { VkStructureType sType; void * pNext; VkBool32linearColorAttachment(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceLinearColorAttachmentFeaturesNV.BufferAn array ofVkPhysicalDeviceLinearColorAttachmentFeaturesNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intLINEARCOLORATTACHMENT
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceLinearColorAttachmentFeaturesNV(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceLinearColorAttachmentFeaturesNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceLinearColorAttachmentFeaturesNVcalloc()Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNVinstance allocated withmemCalloc.static VkPhysicalDeviceLinearColorAttachmentFeaturesNV.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNV.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceLinearColorAttachmentFeaturesNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceLinearColorAttachmentFeaturesNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceLinearColorAttachmentFeaturesNVcreate()Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNVinstance allocated withBufferUtils.static VkPhysicalDeviceLinearColorAttachmentFeaturesNV.Buffercreate(int capacity)Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNV.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceLinearColorAttachmentFeaturesNVcreate(long address)Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNVinstance for the specified memory address.static VkPhysicalDeviceLinearColorAttachmentFeaturesNV.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceLinearColorAttachmentFeaturesNV.Bufferinstance at the specified memory.static VkPhysicalDeviceLinearColorAttachmentFeaturesNVcreateSafe(long address)static VkPhysicalDeviceLinearColorAttachmentFeaturesNV.BuffercreateSafe(long address, int capacity)booleanlinearColorAttachment()indicates whether the implementation supports renderable Linear Color AttachmentVkPhysicalDeviceLinearColorAttachmentFeaturesNVlinearColorAttachment(boolean value)Sets the specified value to thelinearColorAttachment()field.static VkPhysicalDeviceLinearColorAttachmentFeaturesNVmalloc()Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNVinstance allocated withmemAlloc.static VkPhysicalDeviceLinearColorAttachmentFeaturesNV.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNV.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceLinearColorAttachmentFeaturesNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceLinearColorAttachmentFeaturesNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNVinstance allocated on the specifiedMemoryStack.static intnlinearColorAttachment(long struct)Unsafe version oflinearColorAttachment().static voidnlinearColorAttachment(long struct, int value)Unsafe version oflinearColorAttachment.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()VkPhysicalDeviceLinearColorAttachmentFeaturesNVpNext(long value)Sets the specified value to thepNextfield.VkPhysicalDeviceLinearColorAttachmentFeaturesNVset(int sType, long pNext, boolean linearColorAttachment)Initializes this struct with the specified values.VkPhysicalDeviceLinearColorAttachmentFeaturesNVset(VkPhysicalDeviceLinearColorAttachmentFeaturesNV src)Copies the specified struct data to this struct.intsizeof()intsType()VkPhysicalDeviceLinearColorAttachmentFeaturesNVsType(int value)Sets the specified value to thesTypefield.VkPhysicalDeviceLinearColorAttachmentFeaturesNVsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_LINEAR_COLOR_ATTACHMENT_FEATURES_NVvalue to thesTypefield.
-
-
-
Constructor Detail
-
VkPhysicalDeviceLinearColorAttachmentFeaturesNV
public VkPhysicalDeviceLinearColorAttachmentFeaturesNV(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceLinearColorAttachmentFeaturesNVinstance 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 the
sTypefield.
-
pNext
public long pNext()
- Returns:
- the value of the
pNextfield.
-
linearColorAttachment
public boolean linearColorAttachment()
indicates whether the implementation supports renderable Linear Color Attachment
-
sType
public VkPhysicalDeviceLinearColorAttachmentFeaturesNV sType(int value)
Sets the specified value to thesTypefield.
-
sType$Default
public VkPhysicalDeviceLinearColorAttachmentFeaturesNV sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_LINEAR_COLOR_ATTACHMENT_FEATURES_NVvalue to thesTypefield.
-
pNext
public VkPhysicalDeviceLinearColorAttachmentFeaturesNV pNext(long value)
Sets the specified value to thepNextfield.
-
linearColorAttachment
public VkPhysicalDeviceLinearColorAttachmentFeaturesNV linearColorAttachment(boolean value)
Sets the specified value to thelinearColorAttachment()field.
-
set
public VkPhysicalDeviceLinearColorAttachmentFeaturesNV set(int sType, long pNext, boolean linearColorAttachment)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceLinearColorAttachmentFeaturesNV set(VkPhysicalDeviceLinearColorAttachmentFeaturesNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceLinearColorAttachmentFeaturesNV malloc()
Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceLinearColorAttachmentFeaturesNV calloc()
Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceLinearColorAttachmentFeaturesNV create()
Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNVinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceLinearColorAttachmentFeaturesNV create(long address)
Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceLinearColorAttachmentFeaturesNV createSafe(long address)
-
malloc
public static VkPhysicalDeviceLinearColorAttachmentFeaturesNV.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceLinearColorAttachmentFeaturesNV.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceLinearColorAttachmentFeaturesNV.Buffer create(int capacity)
Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceLinearColorAttachmentFeaturesNV.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceLinearColorAttachmentFeaturesNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceLinearColorAttachmentFeaturesNV.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceLinearColorAttachmentFeaturesNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceLinearColorAttachmentFeaturesNV calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceLinearColorAttachmentFeaturesNV.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceLinearColorAttachmentFeaturesNV.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceLinearColorAttachmentFeaturesNV.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().
-
nlinearColorAttachment
public static int nlinearColorAttachment(long struct)
Unsafe version oflinearColorAttachment().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nlinearColorAttachment
public static void nlinearColorAttachment(long struct, int value)Unsafe version oflinearColorAttachment.
-
-