Package org.lwjgl.vulkan
Class VkRenderPassInputAttachmentAspectCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkRenderPassInputAttachmentAspectCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkRenderPassInputAttachmentAspectCreateInfoKHR
public class VkRenderPassInputAttachmentAspectCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying, for a given subpass/input attachment pair, which aspect can be read.Description
To specify which aspects of an input attachment can be read, add a
VkRenderPassInputAttachmentAspectCreateInfostructure to thepNextchain of theVkRenderPassCreateInfostructure:An application can access any aspect of an input attachment that does not have a specified aspect mask in the
pAspectReferencesarray. Otherwise, an application must not access aspect(s) of an input attachment other than those in its specified aspect mask.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_RENDER_PASS_INPUT_ATTACHMENT_ASPECT_CREATE_INFOpAspectReferencesmust be a valid pointer to an array ofaspectReferenceCountvalidVkInputAttachmentAspectReferencestructuresaspectReferenceCountmust be greater than 0
See Also
VkInputAttachmentAspectReferenceLayout
struct VkRenderPassInputAttachmentAspectCreateInfo { VkStructureTypesType(); void const *pNext(); uint32_taspectReferenceCount();VkInputAttachmentAspectReferenceconst *pAspectReferences(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkRenderPassInputAttachmentAspectCreateInfo.BufferAn array ofVkRenderPassInputAttachmentAspectCreateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intASPECTREFERENCECOUNT
PASPECTREFERENCES
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkRenderPassInputAttachmentAspectCreateInfo(java.nio.ByteBuffer container)Creates aVkRenderPassInputAttachmentAspectCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intaspectReferenceCount()the number of elements in thepAspectReferencesarray.static VkRenderPassInputAttachmentAspectCreateInfocalloc()Returns a newVkRenderPassInputAttachmentAspectCreateInfoinstance allocated withmemCalloc.static VkRenderPassInputAttachmentAspectCreateInfo.Buffercalloc(int capacity)Returns a newVkRenderPassInputAttachmentAspectCreateInfo.Bufferinstance allocated withmemCalloc.static VkRenderPassInputAttachmentAspectCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassInputAttachmentAspectCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRenderPassInputAttachmentAspectCreateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassInputAttachmentAspectCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRenderPassInputAttachmentAspectCreateInfocallocStack()Deprecated.static VkRenderPassInputAttachmentAspectCreateInfo.BuffercallocStack(int capacity)Deprecated.static VkRenderPassInputAttachmentAspectCreateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkRenderPassInputAttachmentAspectCreateInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkRenderPassInputAttachmentAspectCreateInfocreate()Returns a newVkRenderPassInputAttachmentAspectCreateInfoinstance allocated withBufferUtils.static VkRenderPassInputAttachmentAspectCreateInfo.Buffercreate(int capacity)Returns a newVkRenderPassInputAttachmentAspectCreateInfo.Bufferinstance allocated withBufferUtils.static VkRenderPassInputAttachmentAspectCreateInfocreate(long address)Returns a newVkRenderPassInputAttachmentAspectCreateInfoinstance for the specified memory address.static VkRenderPassInputAttachmentAspectCreateInfo.Buffercreate(long address, int capacity)Create aVkRenderPassInputAttachmentAspectCreateInfo.Bufferinstance at the specified memory.static VkRenderPassInputAttachmentAspectCreateInfocreateSafe(long address)static VkRenderPassInputAttachmentAspectCreateInfo.BuffercreateSafe(long address, int capacity)static VkRenderPassInputAttachmentAspectCreateInfomalloc()Returns a newVkRenderPassInputAttachmentAspectCreateInfoinstance allocated withmemAlloc.static VkRenderPassInputAttachmentAspectCreateInfo.Buffermalloc(int capacity)Returns a newVkRenderPassInputAttachmentAspectCreateInfo.Bufferinstance allocated withmemAlloc.static VkRenderPassInputAttachmentAspectCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassInputAttachmentAspectCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkRenderPassInputAttachmentAspectCreateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkRenderPassInputAttachmentAspectCreateInfoinstance allocated on the specifiedMemoryStack.static VkRenderPassInputAttachmentAspectCreateInfomallocStack()Deprecated.static VkRenderPassInputAttachmentAspectCreateInfo.BuffermallocStack(int capacity)Deprecated.static VkRenderPassInputAttachmentAspectCreateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkRenderPassInputAttachmentAspectCreateInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnaspectReferenceCount(long struct)Unsafe version ofaspectReferenceCount().static voidnaspectReferenceCount(long struct, int value)Sets the specified value to theaspectReferenceCountfield of the specifiedstruct.static VkInputAttachmentAspectReference.BuffernpAspectReferences(long struct)Unsafe version ofpAspectReferences().static voidnpAspectReferences(long struct, VkInputAttachmentAspectReference.Buffer value)Unsafe version ofpAspectReferences.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.VkInputAttachmentAspectReference.BufferpAspectReferences()a pointer to an array ofaspectReferenceCountVkInputAttachmentAspectReferencestructures containing a mask describing which aspect(s) can be accessed for a given input attachment within a given subpass.VkRenderPassInputAttachmentAspectCreateInfopAspectReferences(VkInputAttachmentAspectReference.Buffer value)Sets the address of the specifiedVkInputAttachmentAspectReference.Bufferto thepAspectReferences()field.longpNext()NULLor a pointer to a structure extending this structure.VkRenderPassInputAttachmentAspectCreateInfopNext(long value)Sets the specified value to thepNext()field.VkRenderPassInputAttachmentAspectCreateInfoset(int sType, long pNext, VkInputAttachmentAspectReference.Buffer pAspectReferences)Initializes this struct with the specified values.VkRenderPassInputAttachmentAspectCreateInfoset(VkRenderPassInputAttachmentAspectCreateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkRenderPassInputAttachmentAspectCreateInfosType(int value)Sets the specified value to thesType()field.VkRenderPassInputAttachmentAspectCreateInfosType$Default()Sets theSTRUCTURE_TYPE_RENDER_PASS_INPUT_ATTACHMENT_ASPECT_CREATE_INFOvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
VkRenderPassInputAttachmentAspectCreateInfo
public VkRenderPassInputAttachmentAspectCreateInfo(java.nio.ByteBuffer container)
Creates aVkRenderPassInputAttachmentAspectCreateInfoinstance 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.
-
aspectReferenceCount
public int aspectReferenceCount()
the number of elements in thepAspectReferencesarray.
-
pAspectReferences
public VkInputAttachmentAspectReference.Buffer pAspectReferences()
a pointer to an array ofaspectReferenceCountVkInputAttachmentAspectReferencestructures containing a mask describing which aspect(s) can be accessed for a given input attachment within a given subpass.
-
sType
public VkRenderPassInputAttachmentAspectCreateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkRenderPassInputAttachmentAspectCreateInfo sType$Default()
Sets theSTRUCTURE_TYPE_RENDER_PASS_INPUT_ATTACHMENT_ASPECT_CREATE_INFOvalue to thesType()field.
-
pNext
public VkRenderPassInputAttachmentAspectCreateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
pAspectReferences
public VkRenderPassInputAttachmentAspectCreateInfo pAspectReferences(VkInputAttachmentAspectReference.Buffer value)
Sets the address of the specifiedVkInputAttachmentAspectReference.Bufferto thepAspectReferences()field.
-
set
public VkRenderPassInputAttachmentAspectCreateInfo set(int sType, long pNext, VkInputAttachmentAspectReference.Buffer pAspectReferences)
Initializes this struct with the specified values.
-
set
public VkRenderPassInputAttachmentAspectCreateInfo set(VkRenderPassInputAttachmentAspectCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkRenderPassInputAttachmentAspectCreateInfo malloc()
Returns a newVkRenderPassInputAttachmentAspectCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkRenderPassInputAttachmentAspectCreateInfo calloc()
Returns a newVkRenderPassInputAttachmentAspectCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkRenderPassInputAttachmentAspectCreateInfo create()
Returns a newVkRenderPassInputAttachmentAspectCreateInfoinstance allocated withBufferUtils.
-
create
public static VkRenderPassInputAttachmentAspectCreateInfo create(long address)
Returns a newVkRenderPassInputAttachmentAspectCreateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkRenderPassInputAttachmentAspectCreateInfo createSafe(long address)
-
malloc
public static VkRenderPassInputAttachmentAspectCreateInfo.Buffer malloc(int capacity)
Returns a newVkRenderPassInputAttachmentAspectCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkRenderPassInputAttachmentAspectCreateInfo.Buffer calloc(int capacity)
Returns a newVkRenderPassInputAttachmentAspectCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkRenderPassInputAttachmentAspectCreateInfo.Buffer create(int capacity)
Returns a newVkRenderPassInputAttachmentAspectCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkRenderPassInputAttachmentAspectCreateInfo.Buffer create(long address, int capacity)
Create aVkRenderPassInputAttachmentAspectCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkRenderPassInputAttachmentAspectCreateInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkRenderPassInputAttachmentAspectCreateInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkRenderPassInputAttachmentAspectCreateInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkRenderPassInputAttachmentAspectCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkRenderPassInputAttachmentAspectCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkRenderPassInputAttachmentAspectCreateInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkRenderPassInputAttachmentAspectCreateInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkRenderPassInputAttachmentAspectCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkRenderPassInputAttachmentAspectCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkRenderPassInputAttachmentAspectCreateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassInputAttachmentAspectCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkRenderPassInputAttachmentAspectCreateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassInputAttachmentAspectCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkRenderPassInputAttachmentAspectCreateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassInputAttachmentAspectCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkRenderPassInputAttachmentAspectCreateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkRenderPassInputAttachmentAspectCreateInfo.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().
-
naspectReferenceCount
public static int naspectReferenceCount(long struct)
Unsafe version ofaspectReferenceCount().
-
npAspectReferences
public static VkInputAttachmentAspectReference.Buffer npAspectReferences(long struct)
Unsafe version ofpAspectReferences().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
naspectReferenceCount
public static void naspectReferenceCount(long struct, int value)Sets the specified value to theaspectReferenceCountfield of the specifiedstruct.
-
npAspectReferences
public static void npAspectReferences(long struct, VkInputAttachmentAspectReference.Buffer value)Unsafe version ofpAspectReferences.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-