Class VkAttachmentSampleCountInfoAMD
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkAttachmentSampleCountInfoAMD
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkAttachmentSampleCountInfoNV
public class VkAttachmentSampleCountInfoAMD extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying command buffer inheritance info for dynamic render pass instances.Description
If
VkCommandBufferInheritanceInfo::renderPassisNULL_HANDLE,COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BITis specified inVkCommandBufferBeginInfo::flags, and thepNextchain ofVkCommandBufferInheritanceInfoincludesVkAttachmentSampleCountInfoAMD, then this structure defines the sample counts of each attachment within the render pass instance. IfVkAttachmentSampleCountInfoAMDis not included, the value ofVkCommandBufferInheritanceRenderingInfo::rasterizationSamplesis used as the sample count for each attachment. IfVkCommandBufferInheritanceInfo::renderPassis notNULL_HANDLE, orCOMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BITis not specified inVkCommandBufferBeginInfo::flags, parameters of this structure are ignored.VkAttachmentSampleCountInfoAMDcan also be included in thepNextchain ofVkGraphicsPipelineCreateInfo. When a graphics pipeline is created without aVkRenderPass, if this structure is present in thepNextchain ofVkGraphicsPipelineCreateInfo, it specifies the sample count of attachments used for rendering. If this structure is not specified, and the pipeline does not include aVkRenderPass, the value ofVkPipelineMultisampleStateCreateInfo::rasterizationSamplesis used as the sample count for each attachment. If a graphics pipeline is created with a validVkRenderPass, parameters of this structure are ignored.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_ATTACHMENT_SAMPLE_COUNT_INFO_AMD- If
colorAttachmentCountis not 0,pColorAttachmentSamplesmust be a valid pointer to an array ofcolorAttachmentCountvalidVkSampleCountFlagBitsvalues - If
depthStencilAttachmentSamplesis not 0,depthStencilAttachmentSamplesmust be a validVkSampleCountFlagBitsvalue
Layout
struct VkAttachmentSampleCountInfoAMD { VkStructureTypesType(); void const *pNext(); uint32_tcolorAttachmentCount(); VkSampleCountFlagBits const *pColorAttachmentSamples(); VkSampleCountFlagBitsdepthStencilAttachmentSamples(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkAttachmentSampleCountInfoAMD.BufferAn array ofVkAttachmentSampleCountInfoAMDstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOLORATTACHMENTCOUNT
DEPTHSTENCILATTACHMENTSAMPLES
PCOLORATTACHMENTSAMPLES
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkAttachmentSampleCountInfoAMD(java.nio.ByteBuffer container)Creates aVkAttachmentSampleCountInfoAMDinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkAttachmentSampleCountInfoAMDcalloc()Returns a newVkAttachmentSampleCountInfoAMDinstance allocated withmemCalloc.static VkAttachmentSampleCountInfoAMD.Buffercalloc(int capacity)Returns a newVkAttachmentSampleCountInfoAMD.Bufferinstance allocated withmemCalloc.static VkAttachmentSampleCountInfoAMD.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentSampleCountInfoAMD.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAttachmentSampleCountInfoAMDcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentSampleCountInfoAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcolorAttachmentCount()the number of color attachments specified in a render pass instance.static VkAttachmentSampleCountInfoAMDcreate()Returns a newVkAttachmentSampleCountInfoAMDinstance allocated withBufferUtils.static VkAttachmentSampleCountInfoAMD.Buffercreate(int capacity)Returns a newVkAttachmentSampleCountInfoAMD.Bufferinstance allocated withBufferUtils.static VkAttachmentSampleCountInfoAMDcreate(long address)Returns a newVkAttachmentSampleCountInfoAMDinstance for the specified memory address.static VkAttachmentSampleCountInfoAMD.Buffercreate(long address, int capacity)Create aVkAttachmentSampleCountInfoAMD.Bufferinstance at the specified memory.static VkAttachmentSampleCountInfoAMDcreateSafe(long address)static VkAttachmentSampleCountInfoAMD.BuffercreateSafe(long address, int capacity)intdepthStencilAttachmentSamples()aVkSampleCountFlagBitsvalue defining the sample count of a depth/stencil attachment.VkAttachmentSampleCountInfoAMDdepthStencilAttachmentSamples(int value)Sets the specified value to thedepthStencilAttachmentSamples()field.static VkAttachmentSampleCountInfoAMDmalloc()Returns a newVkAttachmentSampleCountInfoAMDinstance allocated withmemAlloc.static VkAttachmentSampleCountInfoAMD.Buffermalloc(int capacity)Returns a newVkAttachmentSampleCountInfoAMD.Bufferinstance allocated withmemAlloc.static VkAttachmentSampleCountInfoAMD.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentSampleCountInfoAMD.Bufferinstance allocated on the specifiedMemoryStack.static VkAttachmentSampleCountInfoAMDmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentSampleCountInfoAMDinstance allocated on the specifiedMemoryStack.static intncolorAttachmentCount(long struct)Unsafe version ofcolorAttachmentCount().static voidncolorAttachmentCount(long struct, int value)Sets the specified value to thecolorAttachmentCountfield of the specifiedstruct.static intndepthStencilAttachmentSamples(long struct)Unsafe version ofdepthStencilAttachmentSamples().static voidndepthStencilAttachmentSamples(long struct, int value)Unsafe version ofdepthStencilAttachmentSamples.static java.nio.IntBuffernpColorAttachmentSamples(long struct)Unsafe version ofpColorAttachmentSamples.static voidnpColorAttachmentSamples(long struct, java.nio.IntBuffer value)Unsafe version ofpColorAttachmentSamples.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.java.nio.IntBufferpColorAttachmentSamples()a pointer to an array ofVkSampleCountFlagBitsvalues defining the sample count of color attachments.VkAttachmentSampleCountInfoAMDpColorAttachmentSamples(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepColorAttachmentSamples()field.longpNext()NULLor a pointer to a structure extending this structureVkAttachmentSampleCountInfoAMDpNext(long value)Sets the specified value to thepNext()field.VkAttachmentSampleCountInfoAMDset(int sType, long pNext, java.nio.IntBuffer pColorAttachmentSamples, int depthStencilAttachmentSamples)Initializes this struct with the specified values.VkAttachmentSampleCountInfoAMDset(VkAttachmentSampleCountInfoAMD src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structureVkAttachmentSampleCountInfoAMDsType(int value)Sets the specified value to thesType()field.VkAttachmentSampleCountInfoAMDsType$Default()Sets theSTRUCTURE_TYPE_ATTACHMENT_SAMPLE_COUNT_INFO_AMDvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkAttachmentSampleCountInfoAMD
public VkAttachmentSampleCountInfoAMD(java.nio.ByteBuffer container)
Creates aVkAttachmentSampleCountInfoAMDinstance 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
-
colorAttachmentCount
public int colorAttachmentCount()
the number of color attachments specified in a render pass instance.
-
pColorAttachmentSamples
@Nullable public java.nio.IntBuffer pColorAttachmentSamples()
a pointer to an array ofVkSampleCountFlagBitsvalues defining the sample count of color attachments.
-
depthStencilAttachmentSamples
public int depthStencilAttachmentSamples()
aVkSampleCountFlagBitsvalue defining the sample count of a depth/stencil attachment.
-
sType
public VkAttachmentSampleCountInfoAMD sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkAttachmentSampleCountInfoAMD sType$Default()
Sets theSTRUCTURE_TYPE_ATTACHMENT_SAMPLE_COUNT_INFO_AMDvalue to thesType()field.
-
pNext
public VkAttachmentSampleCountInfoAMD pNext(long value)
Sets the specified value to thepNext()field.
-
pColorAttachmentSamples
public VkAttachmentSampleCountInfoAMD pColorAttachmentSamples(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepColorAttachmentSamples()field.
-
depthStencilAttachmentSamples
public VkAttachmentSampleCountInfoAMD depthStencilAttachmentSamples(int value)
Sets the specified value to thedepthStencilAttachmentSamples()field.
-
set
public VkAttachmentSampleCountInfoAMD set(int sType, long pNext, @Nullable java.nio.IntBuffer pColorAttachmentSamples, int depthStencilAttachmentSamples)
Initializes this struct with the specified values.
-
set
public VkAttachmentSampleCountInfoAMD set(VkAttachmentSampleCountInfoAMD src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkAttachmentSampleCountInfoAMD malloc()
Returns a newVkAttachmentSampleCountInfoAMDinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkAttachmentSampleCountInfoAMD calloc()
Returns a newVkAttachmentSampleCountInfoAMDinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkAttachmentSampleCountInfoAMD create()
Returns a newVkAttachmentSampleCountInfoAMDinstance allocated withBufferUtils.
-
create
public static VkAttachmentSampleCountInfoAMD create(long address)
Returns a newVkAttachmentSampleCountInfoAMDinstance for the specified memory address.
-
createSafe
@Nullable public static VkAttachmentSampleCountInfoAMD createSafe(long address)
-
malloc
public static VkAttachmentSampleCountInfoAMD.Buffer malloc(int capacity)
Returns a newVkAttachmentSampleCountInfoAMD.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkAttachmentSampleCountInfoAMD.Buffer calloc(int capacity)
Returns a newVkAttachmentSampleCountInfoAMD.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkAttachmentSampleCountInfoAMD.Buffer create(int capacity)
Returns a newVkAttachmentSampleCountInfoAMD.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkAttachmentSampleCountInfoAMD.Buffer create(long address, int capacity)
Create aVkAttachmentSampleCountInfoAMD.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkAttachmentSampleCountInfoAMD.Buffer createSafe(long address, int capacity)
-
malloc
public static VkAttachmentSampleCountInfoAMD malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentSampleCountInfoAMDinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkAttachmentSampleCountInfoAMD calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentSampleCountInfoAMDinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkAttachmentSampleCountInfoAMD.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentSampleCountInfoAMD.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkAttachmentSampleCountInfoAMD.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentSampleCountInfoAMD.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().
-
ncolorAttachmentCount
public static int ncolorAttachmentCount(long struct)
Unsafe version ofcolorAttachmentCount().
-
npColorAttachmentSamples
@Nullable public static java.nio.IntBuffer npColorAttachmentSamples(long struct)
Unsafe version ofpColorAttachmentSamples.
-
ndepthStencilAttachmentSamples
public static int ndepthStencilAttachmentSamples(long struct)
Unsafe version ofdepthStencilAttachmentSamples().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ncolorAttachmentCount
public static void ncolorAttachmentCount(long struct, int value)Sets the specified value to thecolorAttachmentCountfield of the specifiedstruct.
-
npColorAttachmentSamples
public static void npColorAttachmentSamples(long struct, @Nullable java.nio.IntBuffer value)Unsafe version ofpColorAttachmentSamples.
-
ndepthStencilAttachmentSamples
public static void ndepthStencilAttachmentSamples(long struct, int value)Unsafe version ofdepthStencilAttachmentSamples.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-