Package org.lwjgl.vulkan
Class VkRenderPassCreateInfo
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkRenderPassCreateInfo
extends Struct<VkRenderPassCreateInfo>
implements NativeResource
struct VkRenderPassCreateInfo {
VkStructureType sType;
void const * pNext;
VkRenderPassCreateFlags flags;
uint32_t attachmentCount;
VkAttachmentDescription const * pAttachments;
uint32_t subpassCount;
VkSubpassDescription const * pSubpasses;
uint32_t dependencyCount;
VkSubpassDependency const * pDependencies;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkRenderPassCreateInfo(ByteBuffer container) Creates aVkRenderPassCreateInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintstatic VkRenderPassCreateInfocalloc()Returns a newVkRenderPassCreateInfoinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkRenderPassCreateInfo.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkRenderPassCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRenderPassCreateInfocalloc(MemoryStack stack) Returns a newVkRenderPassCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkRenderPassCreateInfocreate()Returns a newVkRenderPassCreateInfoinstance allocated withBufferUtils.create(int capacity) Returns a newVkRenderPassCreateInfo.Bufferinstance allocated withBufferUtils.static VkRenderPassCreateInfocreate(long address) Returns a newVkRenderPassCreateInfoinstance for the specified memory address.create(long address, int capacity) Create aVkRenderPassCreateInfo.Bufferinstance at the specified memory.static @Nullable VkRenderPassCreateInfocreateSafe(long address) static @Nullable VkRenderPassCreateInfo.BuffercreateSafe(long address, int capacity) intintflags()flags(int value) Sets the specified value to theflagsfield.static VkRenderPassCreateInfomalloc()Returns a newVkRenderPassCreateInfoinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkRenderPassCreateInfo.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkRenderPassCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkRenderPassCreateInfomalloc(MemoryStack stack) Returns a newVkRenderPassCreateInfoinstance allocated on the specifiedMemoryStack.static intnattachmentCount(long struct) Unsafe version ofattachmentCount().static voidnattachmentCount(long struct, int value) Sets the specified value to theattachmentCountfield of the specifiedstruct.static intndependencyCount(long struct) Unsafe version ofdependencyCount().static voidndependencyCount(long struct, int value) Sets the specified value to thedependencyCountfield of the specifiedstruct.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static @Nullable VkAttachmentDescription.BuffernpAttachments(long struct) Unsafe version ofpAttachments().static voidnpAttachments(long struct, @Nullable VkAttachmentDescription.Buffer value) Unsafe version ofpAttachments.static @Nullable VkSubpassDependency.BuffernpDependencies(long struct) Unsafe version ofpDependencies().static voidnpDependencies(long struct, @Nullable VkSubpassDependency.Buffer value) Unsafe version ofpDependencies.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static VkSubpassDescription.BuffernpSubpasses(long struct) Unsafe version ofpSubpasses().static voidnpSubpasses(long struct, VkSubpassDescription.Buffer value) Unsafe version ofpSubpasses.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.static intnsubpassCount(long struct) Unsafe version ofsubpassCount().static voidnsubpassCount(long struct, int value) Sets the specified value to thesubpassCountfield of the specifiedstruct.@Nullable VkAttachmentDescription.BufferpAttachments(@Nullable VkAttachmentDescription.Buffer value) Sets the address of the specifiedVkAttachmentDescription.Bufferto thepAttachmentsfield.@Nullable VkSubpassDependency.BufferpDependencies(@Nullable VkSubpassDependency.Buffer value) Sets the address of the specifiedVkSubpassDependency.Bufferto thepDependenciesfield.longpNext()pNext(long value) Sets the specified value to thepNextfield.Prepends the specifiedVkRenderPassFragmentDensityMapCreateInfoEXTvalue to thepNextchain.Prepends the specifiedVkRenderPassInputAttachmentAspectCreateInfovalue to thepNextchain.Prepends the specifiedVkRenderPassInputAttachmentAspectCreateInfoKHRvalue to thepNextchain.Prepends the specifiedVkRenderPassMultiviewCreateInfovalue to thepNextchain.Prepends the specifiedVkRenderPassMultiviewCreateInfoKHRvalue to thepNextchain.Prepends the specifiedVkRenderPassTileShadingCreateInfoQCOMvalue to thepNextchain.pNext(VkTileMemorySizeInfoQCOM value) Prepends the specifiedVkTileMemorySizeInfoQCOMvalue to thepNextchain.Sets the address of the specifiedVkSubpassDescription.Bufferto thepSubpassesfield.set(int sType, long pNext, int flags, @Nullable VkAttachmentDescription.Buffer pAttachments, VkSubpassDescription.Buffer pSubpasses, @Nullable VkSubpassDependency.Buffer pDependencies) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_RENDER_PASS_CREATE_INFOvalue to thesTypefield.intstatic voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
ATTACHMENTCOUNT
public static final int ATTACHMENTCOUNTThe struct member offsets. -
PATTACHMENTS
public static final int PATTACHMENTSThe struct member offsets. -
SUBPASSCOUNT
public static final int SUBPASSCOUNTThe struct member offsets. -
PSUBPASSES
public static final int PSUBPASSESThe struct member offsets. -
DEPENDENCYCOUNT
public static final int DEPENDENCYCOUNTThe struct member offsets. -
PDEPENDENCIES
public static final int PDEPENDENCIESThe struct member offsets.
-
-
Constructor Details
-
VkRenderPassCreateInfo
Creates aVkRenderPassCreateInfoinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkRenderPassCreateInfo>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
attachmentCount
public int attachmentCount()- Returns:
- the value of the
attachmentCountfield.
-
pAttachments
- Returns:
- a
VkAttachmentDescription.Bufferview of the struct array pointed to by thepAttachmentsfield.
-
subpassCount
public int subpassCount()- Returns:
- the value of the
subpassCountfield.
-
pSubpasses
- Returns:
- a
VkSubpassDescription.Bufferview of the struct array pointed to by thepSubpassesfield.
-
dependencyCount
public int dependencyCount()- Returns:
- the value of the
dependencyCountfield.
-
pDependencies
- Returns:
- a
VkSubpassDependency.Bufferview of the struct array pointed to by thepDependenciesfield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_RENDER_PASS_CREATE_INFOvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
pNext
Prepends the specifiedVkRenderPassFragmentDensityMapCreateInfoEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkRenderPassInputAttachmentAspectCreateInfovalue to thepNextchain. -
pNext
Prepends the specifiedVkRenderPassInputAttachmentAspectCreateInfoKHRvalue to thepNextchain. -
pNext
Prepends the specifiedVkRenderPassMultiviewCreateInfovalue to thepNextchain. -
pNext
Prepends the specifiedVkRenderPassMultiviewCreateInfoKHRvalue to thepNextchain. -
pNext
Prepends the specifiedVkRenderPassTileShadingCreateInfoQCOMvalue to thepNextchain. -
pNext
Prepends the specifiedVkTileMemorySizeInfoQCOMvalue to thepNextchain. -
flags
Sets the specified value to theflagsfield. -
pAttachments
Sets the address of the specifiedVkAttachmentDescription.Bufferto thepAttachmentsfield. -
pSubpasses
Sets the address of the specifiedVkSubpassDescription.Bufferto thepSubpassesfield. -
pDependencies
Sets the address of the specifiedVkSubpassDependency.Bufferto thepDependenciesfield. -
set
public VkRenderPassCreateInfo set(int sType, long pNext, int flags, @Nullable VkAttachmentDescription.Buffer pAttachments, VkSubpassDescription.Buffer pSubpasses, @Nullable VkSubpassDependency.Buffer pDependencies) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkRenderPassCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkRenderPassCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkRenderPassCreateInfoinstance allocated withBufferUtils. -
create
Returns a newVkRenderPassCreateInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkRenderPassCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkRenderPassCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkRenderPassCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkRenderPassCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkRenderPassCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkRenderPassCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkRenderPassCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkRenderPassCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType(). -
npNext
public static long npNext(long struct) Unsafe version ofpNext(). -
nflags
public static int nflags(long struct) Unsafe version offlags(). -
nattachmentCount
public static int nattachmentCount(long struct) Unsafe version ofattachmentCount(). -
npAttachments
Unsafe version ofpAttachments(). -
nsubpassCount
public static int nsubpassCount(long struct) Unsafe version ofsubpassCount(). -
npSubpasses
Unsafe version ofpSubpasses(). -
ndependencyCount
public static int ndependencyCount(long struct) Unsafe version ofdependencyCount(). -
npDependencies
Unsafe version ofpDependencies(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags. -
nattachmentCount
public static void nattachmentCount(long struct, int value) Sets the specified value to theattachmentCountfield of the specifiedstruct. -
npAttachments
Unsafe version ofpAttachments. -
nsubpassCount
public static void nsubpassCount(long struct, int value) Sets the specified value to thesubpassCountfield of the specifiedstruct. -
npSubpasses
Unsafe version ofpSubpasses. -
ndependencyCount
public static void ndependencyCount(long struct, int value) Sets the specified value to thedependencyCountfield of the specifiedstruct. -
npDependencies
Unsafe version ofpDependencies. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-