Package org.lwjgl.vulkan
Class VkRenderingFragmentDensityMapAttachmentInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkRenderingFragmentDensityMapAttachmentInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkRenderingFragmentDensityMapAttachmentInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying fragment shading rate attachment information.Description
This structure can be included in the
pNextchain ofVkRenderingInfoto define a fragment density map. If this structure is not included in thepNextchain,imageViewis treated asNULL_HANDLE.Valid Usage
- If
imageViewis notNULL_HANDLE,layoutmust beIMAGE_LAYOUT_GENERALorIMAGE_LAYOUT_FRAGMENT_DENSITY_MAP_OPTIMAL_EXT - If
imageViewis notNULL_HANDLE, it must have been created withIMAGE_USAGE_FRAGMENT_DENSITY_MAP_BIT_EXT - If
imageViewis notNULL_HANDLE, it must not have been created withIMAGE_CREATE_SUBSAMPLED_BIT_EXT
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_INFO_EXTimageViewmust be a validVkImageViewhandleimageLayoutmust be a validVkImageLayoutvalue
Layout
struct VkRenderingFragmentDensityMapAttachmentInfoEXT { VkStructureTypesType(); void const *pNext(); VkImageViewimageView(); VkImageLayoutimageLayout(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkRenderingFragmentDensityMapAttachmentInfoEXT.BufferAn array ofVkRenderingFragmentDensityMapAttachmentInfoEXTstructs.
-
Constructor Summary
Constructors Constructor Description VkRenderingFragmentDensityMapAttachmentInfoEXT(java.nio.ByteBuffer container)Creates aVkRenderingFragmentDensityMapAttachmentInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkRenderingFragmentDensityMapAttachmentInfoEXTcalloc()Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXTinstance allocated withmemCalloc.static VkRenderingFragmentDensityMapAttachmentInfoEXT.Buffercalloc(int capacity)Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXT.Bufferinstance allocated withmemCalloc.static VkRenderingFragmentDensityMapAttachmentInfoEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRenderingFragmentDensityMapAttachmentInfoEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRenderingFragmentDensityMapAttachmentInfoEXTcreate()Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXTinstance allocated withBufferUtils.static VkRenderingFragmentDensityMapAttachmentInfoEXT.Buffercreate(int capacity)Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXT.Bufferinstance allocated withBufferUtils.static VkRenderingFragmentDensityMapAttachmentInfoEXTcreate(long address)Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXTinstance for the specified memory address.static VkRenderingFragmentDensityMapAttachmentInfoEXT.Buffercreate(long address, int capacity)Create aVkRenderingFragmentDensityMapAttachmentInfoEXT.Bufferinstance at the specified memory.static VkRenderingFragmentDensityMapAttachmentInfoEXTcreateSafe(long address)static VkRenderingFragmentDensityMapAttachmentInfoEXT.BuffercreateSafe(long address, int capacity)intimageLayout()the layout thatimageViewwill be in during rendering.VkRenderingFragmentDensityMapAttachmentInfoEXTimageLayout(int value)Sets the specified value to theimageLayout()field.longimageView()the image view that will be used as a fragment shading rate attachment.VkRenderingFragmentDensityMapAttachmentInfoEXTimageView(long value)Sets the specified value to theimageView()field.static VkRenderingFragmentDensityMapAttachmentInfoEXTmalloc()Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXTinstance allocated withmemAlloc.static VkRenderingFragmentDensityMapAttachmentInfoEXT.Buffermalloc(int capacity)Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXT.Bufferinstance allocated withmemAlloc.static VkRenderingFragmentDensityMapAttachmentInfoEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkRenderingFragmentDensityMapAttachmentInfoEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXTinstance allocated on the specifiedMemoryStack.static intnimageLayout(long struct)Unsafe version ofimageLayout().static voidnimageLayout(long struct, int value)Unsafe version ofimageLayout.static longnimageView(long struct)Unsafe version ofimageView().static voidnimageView(long struct, long value)Unsafe version ofimageView.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.VkRenderingFragmentDensityMapAttachmentInfoEXTpNext(long value)Sets the specified value to thepNext()field.VkRenderingFragmentDensityMapAttachmentInfoEXTset(int sType, long pNext, long imageView, int imageLayout)Initializes this struct with the specified values.VkRenderingFragmentDensityMapAttachmentInfoEXTset(VkRenderingFragmentDensityMapAttachmentInfoEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkRenderingFragmentDensityMapAttachmentInfoEXTsType(int value)Sets the specified value to thesType()field.VkRenderingFragmentDensityMapAttachmentInfoEXTsType$Default()Sets theSTRUCTURE_TYPE_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_INFO_EXTvalue to thesType()field.
-
-
-
Constructor Detail
-
VkRenderingFragmentDensityMapAttachmentInfoEXT
public VkRenderingFragmentDensityMapAttachmentInfoEXT(java.nio.ByteBuffer container)
Creates aVkRenderingFragmentDensityMapAttachmentInfoEXTinstance 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.
-
imageView
public long imageView()
the image view that will be used as a fragment shading rate attachment.
-
imageLayout
public int imageLayout()
the layout thatimageViewwill be in during rendering.
-
sType
public VkRenderingFragmentDensityMapAttachmentInfoEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkRenderingFragmentDensityMapAttachmentInfoEXT sType$Default()
Sets theSTRUCTURE_TYPE_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_INFO_EXTvalue to thesType()field.
-
pNext
public VkRenderingFragmentDensityMapAttachmentInfoEXT pNext(long value)
Sets the specified value to thepNext()field.
-
imageView
public VkRenderingFragmentDensityMapAttachmentInfoEXT imageView(long value)
Sets the specified value to theimageView()field.
-
imageLayout
public VkRenderingFragmentDensityMapAttachmentInfoEXT imageLayout(int value)
Sets the specified value to theimageLayout()field.
-
set
public VkRenderingFragmentDensityMapAttachmentInfoEXT set(int sType, long pNext, long imageView, int imageLayout)
Initializes this struct with the specified values.
-
set
public VkRenderingFragmentDensityMapAttachmentInfoEXT set(VkRenderingFragmentDensityMapAttachmentInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkRenderingFragmentDensityMapAttachmentInfoEXT malloc()
Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkRenderingFragmentDensityMapAttachmentInfoEXT calloc()
Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkRenderingFragmentDensityMapAttachmentInfoEXT create()
Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXTinstance allocated withBufferUtils.
-
create
public static VkRenderingFragmentDensityMapAttachmentInfoEXT create(long address)
Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkRenderingFragmentDensityMapAttachmentInfoEXT createSafe(long address)
-
malloc
public static VkRenderingFragmentDensityMapAttachmentInfoEXT.Buffer malloc(int capacity)
Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkRenderingFragmentDensityMapAttachmentInfoEXT.Buffer calloc(int capacity)
Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkRenderingFragmentDensityMapAttachmentInfoEXT.Buffer create(int capacity)
Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkRenderingFragmentDensityMapAttachmentInfoEXT.Buffer create(long address, int capacity)
Create aVkRenderingFragmentDensityMapAttachmentInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkRenderingFragmentDensityMapAttachmentInfoEXT.Buffer createSafe(long address, int capacity)
-
malloc
public static VkRenderingFragmentDensityMapAttachmentInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkRenderingFragmentDensityMapAttachmentInfoEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkRenderingFragmentDensityMapAttachmentInfoEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkRenderingFragmentDensityMapAttachmentInfoEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderingFragmentDensityMapAttachmentInfoEXT.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().
-
nimageView
public static long nimageView(long struct)
Unsafe version ofimageView().
-
nimageLayout
public static int nimageLayout(long struct)
Unsafe version ofimageLayout().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nimageView
public static void nimageView(long struct, long value)Unsafe version ofimageView.
-
nimageLayout
public static void nimageLayout(long struct, int value)Unsafe version ofimageLayout.
-
-