public class VkImageViewCreateInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Some of the image creation parameters are inherited by the view. In particular, image view creation inherits the implicit parameter usage specifying the allowed usages of the image view that, by default, takes the value of the corresponding usage parameter specified in VkImageCreateInfo at image creation time. If the image was has a depth-stencil format and was created with a VkImageStencilUsageCreateInfoEXT structure included in the pNext chain of VkImageCreateInfo, the usage is calculated based on the subresource.aspectMask provided:
aspectMask includes only IMAGE_ASPECT_STENCIL_BIT, the implicit usage is equal to VkImageStencilUsageCreateInfoEXT::stencilUsage.aspectMask includes only IMAGE_ASPECT_DEPTH_BIT, the implicit usage is equal to VkImageCreateInfo::usage.aspectMask, the implicit usage is equal to the intersection of VkImageCreateInfo::usage and VkImageStencilUsageCreateInfoEXT::stencilUsage. The implicit usage can be overriden by adding a VkImageViewUsageCreateInfo structure to the pNext chain.If image was created with the IMAGE_CREATE_MUTABLE_FORMAT_BIT flag, and if the format of the image is not multi-planar, format can be different from the image's format, but if image was created without the IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT flag and they are not equal they must be compatible. Image format compatibility is defined in the Format Compatibility Classes section. Views of compatible formats will have the same mapping between texel coordinates and memory locations irrespective of the format, with only the interpretation of the bit pattern changing.
Values intended to be used with one view format may not be exactly preserved when written or read through a different format. For example, an integer value that happens to have the bit pattern of a floating point denorm or NaN may be flushed or canonicalized when written or read through a view with a floating point format. Similarly, a value written through a signed normalized format that has a bit pattern exactly equal to -2b may be changed to -2b + 1 as described in Conversion from Normalized Fixed-Point to Floating-Point.
If image was created with the IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT flag, format must be compatible with the image's format as described above, or must be an uncompressed format in which case it must be size-compatible with the image's format, as defined for copying data between images In this case the resulting image view's texel dimensions equal the dimensions of the selected mip level divided by the compressed texel block size and rounded up.
If the image view is to be used with a sampler which supports sampler Y'CBCR conversion, an identically defined object of type VkSamplerYcbcrConversion to that used to create the sampler must be passed to CreateImageView in a VkSamplerYcbcrConversionInfo included in the pNext chain of VkImageViewCreateInfo. Conversely, if a VkSamplerYcbcrConversion object is passed to CreateImageView, an identically defined VkSamplerYcbcrConversion object must be used when sampling the image.
If the image has a multi-planar format and subresourceRange.aspectMask is IMAGE_ASPECT_COLOR_BIT, format must be identical to the image format, and the sampler to be used with the image view must enable sampler Y'CBCR conversion.
If image was created with the IMAGE_CREATE_MUTABLE_FORMAT_BIT and the image has a multi-planar format, and if subresourceRange.aspectMask is IMAGE_ASPECT_PLANE_0_BIT, IMAGE_ASPECT_PLANE_1_BIT, or IMAGE_ASPECT_PLANE_2_BIT, format must be compatible with the corresponding plane of the image, and the sampler to be used with the image view must not enable sampler Y'CBCR conversion. The width and height of the single-plane image view must be derived from the multi-planar image's dimensions in the manner listed for plane compatibility for the plane.
Any view of an image plane will have the same mapping between texel coordinates and memory locations as used by the channels of the color aspect, subject to the formulae relating texel coordinates to lower-resolution planes as described in Chroma Reconstruction. That is, if an R or B plane has a reduced resolution relative to the G plane of the multi-planar image, the image view operates using the (uplane, vplane) unnormalized coordinates of the reduced-resolution plane, and these coordinates access the same memory locations as the (ucolor, vcolor) unnormalized coordinates of the color aspect for which chroma reconstruction operations operate on the same (uplane, vplane) or (iplane, jplane) coordinates.
| Dim, Arrayed, MS | Image parameters | View parameters |
|---|---|---|
imageType = ci.imageType width = ci.extent.width height = ci.extent.height depth = ci.extent.depth arrayLayers = ci.arrayLayers samples = ci.samples flags = ci.flags where ci is the VkImageCreateInfo used to create image. | baseArrayLayer, layerCount, and levelCount are members of the subresourceRange member. | |
| 1D, 0, 0 | imageType = IMAGE_TYPE_1D width ≥ 1 height = 1 depth = 1 arrayLayers ≥ 1 samples = 1 | viewType = IMAGE_VIEW_TYPE_1D baseArrayLayer ≥ 0 layerCount = 1 |
| 1D, 1, 0 | imageType = IMAGE_TYPE_1D width ≥ 1 height = 1 depth = 1 arrayLayers ≥ 1 samples = 1 | viewType = IMAGE_VIEW_TYPE_1D_ARRAY baseArrayLayer ≥ 0 layerCount ≥ 1 |
| 2D, 0, 0 | imageType = IMAGE_TYPE_2D width ≥ 1 height ≥ 1 depth = 1 arrayLayers ≥ 1 samples = 1 | viewType = IMAGE_VIEW_TYPE_2D baseArrayLayer ≥ 0 layerCount = 1 |
| 2D, 1, 0 | imageType = IMAGE_TYPE_2D width ≥ 1 height ≥ 1 depth = 1 arrayLayers ≥ 1 samples = 1 | viewType = IMAGE_VIEW_TYPE_2D_ARRAY baseArrayLayer ≥ 0 layerCount ≥ 1 |
| 2D, 0, 1 | imageType = IMAGE_TYPE_2D width ≥ 1 height ≥ 1 depth = 1 arrayLayers ≥ 1 samples > 1 | viewType = IMAGE_VIEW_TYPE_2D baseArrayLayer ≥ 0 layerCount = 1 |
| 2D, 1, 1 | imageType = IMAGE_TYPE_2D width ≥ 1 height ≥ 1 depth = 1 arrayLayers ≥ 1 samples > 1 | viewType = IMAGE_VIEW_TYPE_2D_ARRAY baseArrayLayer ≥ 0 layerCount ≥ 1 |
| CUBE, 0, 0 | imageType = IMAGE_TYPE_2D width ≥ 1 height = width depth = 1 arrayLayers ≥ 6 samples = 1 flags includes IMAGE_CREATE_CUBE_COMPATIBLE_BIT | viewType = IMAGE_VIEW_TYPE_CUBE baseArrayLayer ≥ 0 layerCount = 6 |
| CUBE, 1, 0 | imageType = IMAGE_TYPE_2D width ≥ 1 height = width depth = 1 N ≥ 1 arrayLayers ≥ 6 × N samples = 1 flags includes IMAGE_CREATE_CUBE_COMPATIBLE_BIT | viewType = IMAGE_VIEW_TYPE_CUBE_ARRAY baseArrayLayer ≥ 0 layerCount = 6 × N, N ≥ 1 |
| 3D, 0, 0 | imageType = IMAGE_TYPE_3D width ≥ 1 height ≥ 1 depth ≥ 1 arrayLayers = 1 samples = 1 | viewType = IMAGE_VIEW_TYPE_3D baseArrayLayer = 0 layerCount = 1 |
| 3D, 0, 0 | imageType = IMAGE_TYPE_3D width ≥ 1 height ≥ 1 depth ≥ 1 arrayLayers = 1 samples = 1 flags includes IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT_KHR flags does not include IMAGE_CREATE_SPARSE_BINDING_BIT, IMAGE_CREATE_SPARSE_RESIDENCY_BIT, and IMAGE_CREATE_SPARSE_ALIASED_BIT | viewType = IMAGE_VIEW_TYPE_2D levelCount = 1 baseArrayLayer ≥ 0 layerCount = 1 |
| 3D, 0, 0 | imageType = IMAGE_TYPE_3D width ≥ 1 height ≥ 1 depth ≥ 1 arrayLayers = 1 samples = 1 flags includes IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT_KHR flags does not include IMAGE_CREATE_SPARSE_BINDING_BIT, IMAGE_CREATE_SPARSE_RESIDENCY_BIT, and IMAGE_CREATE_SPARSE_ALIASED_BIT | viewType = IMAGE_VIEW_TYPE_2D_ARRAY levelCount = 1 baseArrayLayer ≥ 0 layerCount ≥ 1 |
image was not created with IMAGE_CREATE_CUBE_COMPATIBLE_BIT then viewType must not be IMAGE_VIEW_TYPE_CUBE or IMAGE_VIEW_TYPE_CUBE_ARRAYviewType must not be IMAGE_VIEW_TYPE_CUBE_ARRAYimage was created with IMAGE_TYPE_3D but without IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT set then viewType must not be IMAGE_VIEW_TYPE_2D or IMAGE_VIEW_TYPE_2D_ARRAYimage must have been created with a usage value containing at least one of IMAGE_USAGE_SAMPLED_BIT, IMAGE_USAGE_STORAGE_BIT, IMAGE_USAGE_COLOR_ATTACHMENT_BIT, IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT, IMAGE_USAGE_INPUT_ATTACHMENT_BIT, IMAGE_USAGE_SHADING_RATE_IMAGE_BIT_NV, or IMAGE_USAGE_FRAGMENT_DENSITY_MAP_BIT_EXTusage contains IMAGE_USAGE_SAMPLED_BIT, then the format features of the resultant image view must contain FORMAT_FEATURE_SAMPLED_IMAGE_BIT.usage contains IMAGE_USAGE_STORAGE_BIT, then the image view’s format features must contain FORMAT_FEATURE_STORAGE_IMAGE_BIT.usage contains IMAGE_USAGE_COLOR_ATTACHMENT_BIT, then the image view’s format features must contain FORMAT_FEATURE_COLOR_ATTACHMENT_BIT.usage contains IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT, then the image view’s format features must contain FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT.usage contains IMAGE_USAGE_INPUT_ATTACHMENT_BIT, then the image view’s format features must contain at least one of FORMAT_FEATURE_COLOR_ATTACHMENT_BIT or FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT.subresourceRange.baseMipLevel must be less than the mipLevels specified in VkImageCreateInfo when image was createdsubresourceRange.levelCount is not REMAINING_MIP_LEVELS, subresourceRange.baseMipLevel + subresourceRange.levelCount must be less than or equal to the mipLevels specified in VkImageCreateInfo when image was createdimage was created with usage containing IMAGE_USAGE_FRAGMENT_DENSITY_MAP_BIT_EXT, subresourceRange.levelCount must be 1image is not a 3D image created with IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT set, or viewType is not IMAGE_VIEW_TYPE_2D or IMAGE_VIEW_TYPE_2D_ARRAY, subresourceRange.baseArrayLayer must be less than the arrayLayers specified in VkImageCreateInfo when image was createdsubresourceRange.layerCount is not REMAINING_ARRAY_LAYERS, image is not a 3D image created with IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT set, or viewType is not IMAGE_VIEW_TYPE_2D or IMAGE_VIEW_TYPE_2D_ARRAY, subresourceRange.layerCount must be non-zero and subresourceRange.baseArrayLayer subresourceRange.layerCount must be less than or equal to the arrayLayers specified in VkImageCreateInfo when image was createdimage is a 3D image created with IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT set, and viewType is IMAGE_VIEW_TYPE_2D or IMAGE_VIEW_TYPE_2D_ARRAY, subresourceRange.baseArrayLayer must be less than the depth computed from baseMipLevel and extent.depth specified in VkImageCreateInfo when image was created, according to the formula defined in Image Miplevel Sizing.subresourceRange.layerCount is not REMAINING_ARRAY_LAYERS, image is a 3D image created with IMAGE_CREATE_2D_ARRAY_COMPATIBLE_BIT set, and viewType is IMAGE_VIEW_TYPE_2D or IMAGE_VIEW_TYPE_2D_ARRAY, subresourceRange.layerCount must be non-zero and subresourceRange.baseArrayLayer subresourceRange.layerCount must be less than or equal to the depth computed from baseMipLevel and extent.depth specified in VkImageCreateInfo when image was created, according to the formula defined in Image Miplevel Sizing.image was created with the IMAGE_CREATE_MUTABLE_FORMAT_BIT flag, format must be compatible with the format used to create image, as defined in Format Compatibility Classesimage was created with the IMAGE_CREATE_MUTABLE_FORMAT_BIT flag, but without the IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT flag, and if the format of the image is not a multi-planar format, format must be compatible with the format used to create image, as defined in Format Compatibility Classesimage was created with the IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT flag, format must be compatible with, or must be an uncompressed format that is size-compatible with, the format used to create image.image was created with the IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT flag, the levelCount and layerCount members of subresourceRange must both be 1.VkImageFormatListCreateInfoKHR structure was included in the pNext chain of the VkImageCreateInfo structure used when creating image and the viewFormatCount field of VkImageFormatListCreateInfoKHR is not zero then format must be one of the formats in VkImageFormatListCreateInfoKHR::pViewFormats.image was created with the IMAGE_CREATE_MUTABLE_FORMAT_BIT flag, if the format of the image is a multi-planar format, and if subresourceRange.aspectMask is one of IMAGE_ASPECT_PLANE_0_BIT, IMAGE_ASPECT_PLANE_1_BIT, or IMAGE_ASPECT_PLANE_2_BIT, then format must be compatible with the VkFormat for the plane of the image format indicated by subresourceRange.aspectMask, as defined in Compatible formats of planes of multi-planar formatsimage was not created with the IMAGE_CREATE_MUTABLE_FORMAT_BIT flag, or if the format of the image is a multi-planar format and if subresourceRange.aspectMask is IMAGE_ASPECT_COLOR_BIT, format must be identical to the format used to create imagepNext chain includes a VkSamplerYcbcrConversionInfo structure with a conversion value other than NULL_HANDLE, all members of components must have the value COMPONENT_SWIZZLE_IDENTITY.image is non-sparse then it must be bound completely and contiguously to a single VkDeviceMemory objectsubresourceRange and viewType must be compatible with the image, as described in the compatibility tableimage was created with usage containing IMAGE_USAGE_SHADING_RATE_IMAGE_BIT_NV, viewType must be IMAGE_VIEW_TYPE_2D or IMAGE_VIEW_TYPE_2D_ARRAYimage was created with usage containing IMAGE_USAGE_SHADING_RATE_IMAGE_BIT_NV, format must be FORMAT_R8_UINTflags must not contain IMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DYNAMIC_BIT_EXTimage was created with usage containing IMAGE_USAGE_FRAGMENT_DENSITY_MAP_BIT_EXT, flags must not contain any of IMAGE_CREATE_PROTECTED_BIT, IMAGE_CREATE_SPARSE_BINDING_BIT, IMAGE_CREATE_SPARSE_RESIDENCY_BIT, or IMAGE_CREATE_SPARSE_ALIASED_BITpNext chain includes a VkImageViewUsageCreateInfo structure, and image was not created with a VkImageStencilUsageCreateInfoEXT structure included in the pNext chain of VkImageCreateInfo, its usage member must not include any bits that were not set in the usage member of the VkImageCreateInfo structure used to create imagepNext chain includes a VkImageViewUsageCreateInfo structure, image was created with a VkImageStencilUsageCreateInfoEXT structure included in the pNext chain of VkImageCreateInfo, and subResourceRange.aspectMask includes IMAGE_ASPECT_STENCIL_BIT, the usage member of the VkImageViewUsageCreateInfo instance must not include any bits that were not set in the usage member of the VkImageStencilUsageCreateInfoEXT structure used to create imagepNext chain includes a VkImageViewUsageCreateInfo structure, image was created with a VkImageStencilUsageCreateInfoEXT structure included in the pNext chain of VkImageCreateInfo, and subResourceRange.aspectMask includes bits other than IMAGE_ASPECT_STENCIL_BIT, the usage member of the VkImageViewUsageCreateInfo structure must not include any bits that were not set in the usage member of the VkImageCreateInfo structure used to create imagesType must be STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFOpNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkImageViewASTCDecodeModeEXT, VkImageViewUsageCreateInfo, or VkSamplerYcbcrConversionInfosType member in the pNext chain must be uniqueflags must be a valid combination of VkImageViewCreateFlagBits valuesimage must be a valid VkImage handleviewType must be a valid VkImageViewType valueformat must be a valid VkFormat valuecomponents must be a valid VkComponentMapping structuresubresourceRange must be a valid VkImageSubresourceRange structureVkComponentMapping, VkImageSubresourceRange, CreateImageView
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – a bitmask of VkImageViewCreateFlagBits describing additional parameters of the image view.image – a VkImage on which the view will be created.viewType – a VkImageViewType value specifying the type of the image view.format – a VkFormat describing the format and type used to interpret texel blocks in the image.components – a VkComponentMapping specifies a remapping of color components (or of depth or stencil components after they have been converted into color components).subresourceRange – a VkImageSubresourceRange selecting the set of mipmap levels and array layers to be accessible to the view.
struct VkImageViewCreateInfo {
VkStructureType sType;
void const * pNext;
VkImageViewCreateFlags flags;
VkImage image;
VkImageViewType viewType;
VkFormat format;
VkComponentMapping components;
VkImageSubresourceRange subresourceRange;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkImageViewCreateInfo.Buffer
An array of
VkImageViewCreateInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COMPONENTS
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
FORMAT
The struct member offsets.
|
static int |
IMAGE
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
SUBRESOURCERANGE
The struct member offsets.
|
static int |
VIEWTYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkImageViewCreateInfo(java.nio.ByteBuffer container)
Creates a
VkImageViewCreateInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkImageViewCreateInfo |
calloc()
Returns a new
VkImageViewCreateInfo instance allocated with memCalloc. |
static VkImageViewCreateInfo.Buffer |
calloc(int capacity)
Returns a new
VkImageViewCreateInfo.Buffer instance allocated with memCalloc. |
static VkImageViewCreateInfo |
callocStack()
Returns a new
VkImageViewCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageViewCreateInfo.Buffer |
callocStack(int capacity)
Returns a new
VkImageViewCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageViewCreateInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageViewCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageViewCreateInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageViewCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
VkComponentMapping |
components()
Returns a
VkComponentMapping view of the components field. |
VkImageViewCreateInfo |
components(java.util.function.Consumer<VkComponentMapping> consumer)
Passes the
components field to the specified Consumer. |
VkImageViewCreateInfo |
components(VkComponentMapping value)
Copies the specified
VkComponentMapping to the components field. |
static VkImageViewCreateInfo |
create()
Returns a new
VkImageViewCreateInfo instance allocated with BufferUtils. |
static VkImageViewCreateInfo.Buffer |
create(int capacity)
Returns a new
VkImageViewCreateInfo.Buffer instance allocated with BufferUtils. |
static VkImageViewCreateInfo |
create(long address)
Returns a new
VkImageViewCreateInfo instance for the specified memory address. |
static VkImageViewCreateInfo.Buffer |
create(long address,
int capacity)
Create a
VkImageViewCreateInfo.Buffer instance at the specified memory. |
static VkImageViewCreateInfo |
createSafe(long address)
|
static VkImageViewCreateInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
VkImageViewCreateInfo |
flags(int value)
Sets the specified value to the
flags field. |
int |
format()
Returns the value of the
format field. |
VkImageViewCreateInfo |
format(int value)
Sets the specified value to the
format field. |
long |
image()
Returns the value of the
image field. |
VkImageViewCreateInfo |
image(long value)
Sets the specified value to the
image field. |
static VkImageViewCreateInfo |
malloc()
Returns a new
VkImageViewCreateInfo instance allocated with memAlloc. |
static VkImageViewCreateInfo.Buffer |
malloc(int capacity)
Returns a new
VkImageViewCreateInfo.Buffer instance allocated with memAlloc. |
static VkImageViewCreateInfo |
mallocStack()
Returns a new
VkImageViewCreateInfo instance allocated on the thread-local MemoryStack. |
static VkImageViewCreateInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkImageViewCreateInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkImageViewCreateInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageViewCreateInfo.Buffer instance allocated on the specified MemoryStack. |
static VkImageViewCreateInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageViewCreateInfo instance allocated on the specified MemoryStack. |
static VkComponentMapping |
ncomponents(long struct)
Unsafe version of
components(). |
static void |
ncomponents(long struct,
VkComponentMapping value)
Unsafe version of
components. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static int |
nformat(long struct)
Unsafe version of
format(). |
static void |
nformat(long struct,
int value)
Unsafe version of
format. |
static long |
nimage(long struct)
Unsafe version of
image(). |
static void |
nimage(long struct,
long value)
Unsafe version of
image. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static VkImageSubresourceRange |
nsubresourceRange(long struct)
Unsafe version of
subresourceRange(). |
static void |
nsubresourceRange(long struct,
VkImageSubresourceRange value)
Unsafe version of
subresourceRange. |
static int |
nviewType(long struct)
Unsafe version of
viewType(). |
static void |
nviewType(long struct,
int value)
Unsafe version of
viewType. |
long |
pNext()
Returns the value of the
pNext field. |
VkImageViewCreateInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
VkImageViewCreateInfo |
set(int sType,
long pNext,
int flags,
long image,
int viewType,
int format,
VkComponentMapping components,
VkImageSubresourceRange subresourceRange)
Initializes this struct with the specified values.
|
VkImageViewCreateInfo |
set(VkImageViewCreateInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkImageViewCreateInfo |
sType(int value)
Sets the specified value to the
sType field. |
VkImageSubresourceRange |
subresourceRange()
Returns a
VkImageSubresourceRange view of the subresourceRange field. |
VkImageViewCreateInfo |
subresourceRange(java.util.function.Consumer<VkImageSubresourceRange> consumer)
Passes the
subresourceRange field to the specified Consumer. |
VkImageViewCreateInfo |
subresourceRange(VkImageSubresourceRange value)
Copies the specified
VkImageSubresourceRange to the subresourceRange field. |
int |
viewType()
Returns the value of the
viewType field. |
VkImageViewCreateInfo |
viewType(int value)
Sets the specified value to the
viewType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FLAGS
public static final int IMAGE
public static final int VIEWTYPE
public static final int FORMAT
public static final int COMPONENTS
public static final int SUBRESOURCERANGE
public VkImageViewCreateInfo(java.nio.ByteBuffer container)
VkImageViewCreateInfo instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int flags()
flags field.public long image()
image field.public int viewType()
viewType field.public int format()
format field.public VkComponentMapping components()
VkComponentMapping view of the components field.public VkImageSubresourceRange subresourceRange()
VkImageSubresourceRange view of the subresourceRange field.public VkImageViewCreateInfo sType(int value)
sType field.public VkImageViewCreateInfo pNext(long value)
pNext field.public VkImageViewCreateInfo flags(int value)
flags field.public VkImageViewCreateInfo image(long value)
image field.public VkImageViewCreateInfo viewType(int value)
viewType field.public VkImageViewCreateInfo format(int value)
format field.public VkImageViewCreateInfo components(VkComponentMapping value)
VkComponentMapping to the components field.public VkImageViewCreateInfo components(java.util.function.Consumer<VkComponentMapping> consumer)
components field to the specified Consumer.public VkImageViewCreateInfo subresourceRange(VkImageSubresourceRange value)
VkImageSubresourceRange to the subresourceRange field.public VkImageViewCreateInfo subresourceRange(java.util.function.Consumer<VkImageSubresourceRange> consumer)
subresourceRange field to the specified Consumer.public VkImageViewCreateInfo set(int sType, long pNext, int flags, long image, int viewType, int format, VkComponentMapping components, VkImageSubresourceRange subresourceRange)
public VkImageViewCreateInfo set(VkImageViewCreateInfo src)
src - the source structpublic static VkImageViewCreateInfo malloc()
VkImageViewCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkImageViewCreateInfo calloc()
VkImageViewCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkImageViewCreateInfo create()
VkImageViewCreateInfo instance allocated with BufferUtils.public static VkImageViewCreateInfo create(long address)
VkImageViewCreateInfo instance for the specified memory address.@Nullable public static VkImageViewCreateInfo createSafe(long address)
public static VkImageViewCreateInfo.Buffer malloc(int capacity)
VkImageViewCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageViewCreateInfo.Buffer calloc(int capacity)
VkImageViewCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageViewCreateInfo.Buffer create(int capacity)
VkImageViewCreateInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkImageViewCreateInfo.Buffer create(long address, int capacity)
VkImageViewCreateInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkImageViewCreateInfo.Buffer createSafe(long address, int capacity)
public static VkImageViewCreateInfo mallocStack()
VkImageViewCreateInfo instance allocated on the thread-local MemoryStack.public static VkImageViewCreateInfo callocStack()
VkImageViewCreateInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkImageViewCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkImageViewCreateInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkImageViewCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkImageViewCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkImageViewCreateInfo.Buffer mallocStack(int capacity)
VkImageViewCreateInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkImageViewCreateInfo.Buffer callocStack(int capacity)
VkImageViewCreateInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkImageViewCreateInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageViewCreateInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkImageViewCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageViewCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nflags(long struct)
flags().public static long nimage(long struct)
image().public static int nviewType(long struct)
viewType().public static int nformat(long struct)
format().public static VkComponentMapping ncomponents(long struct)
components().public static VkImageSubresourceRange nsubresourceRange(long struct)
subresourceRange().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void nimage(long struct,
long value)
image.public static void nviewType(long struct,
int value)
viewType.public static void nformat(long struct,
int value)
format.public static void ncomponents(long struct,
VkComponentMapping value)
components.public static void nsubresourceRange(long struct,
VkImageSubresourceRange value)
subresourceRange.Copyright LWJGL. All Rights Reserved. License terms.