Class VkImageViewCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageViewCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkImageViewCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters of a newly created image view.Description
Some of the
imagecreation parameters are inherited by the view. In particular, image view creation inherits the implicit parameterusagespecifying the allowed usages of the image view that, by default, takes the value of the correspondingusageparameter specified inVkImageCreateInfoat image creation time. The implicitusagecan be overriden by adding aVkImageViewUsageCreateInfostructure to thepNextchain, but the view usage must be a subset of the image usage. Ifimagehas a depth-stencil format and was created with aVkImageStencilUsageCreateInfostructure included in thepNextchain ofVkImageCreateInfo, the usage is calculated based on thesubresource.aspectMaskprovided:- If
aspectMaskincludes onlyIMAGE_ASPECT_STENCIL_BIT, the implicitusageis equal toVkImageStencilUsageCreateInfo::stencilUsage. - If
aspectMaskincludes onlyIMAGE_ASPECT_DEPTH_BIT, the implicitusageis equal toVkImageCreateInfo::usage. - If both aspects are included in
aspectMask, the implicitusageis equal to the intersection ofVkImageCreateInfo::usageandVkImageStencilUsageCreateInfo::stencilUsage.
If
imagewas created with theIMAGE_CREATE_MUTABLE_FORMAT_BITflag, and if theformatof the image is not multi-planar,formatcan be different from the image’s format, but ifimagewas created without theIMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BITflag 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 theformat, with only the interpretation of the bit pattern changing.Note
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
-2bmay be changed to-2b + 1as described in Conversion from Normalized Fixed-Point to Floating-Point.If
imagewas created with theIMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BITflag,formatmust 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.The
VkComponentMappingcomponentsmember describes a remapping from components of the image to components of the vector returned by shader image instructions. This remapping must be the identity swizzle for storage image descriptors, input attachment descriptors, framebuffer attachments, and anyVkImageViewused with a combined image sampler that enables sampler Y’CBCR conversion.If the image view is to be used with a sampler which supports sampler Y′CBCR conversion, an identically defined object of type
VkSamplerYcbcrConversionto that used to create the sampler must be passed toCreateImageViewin aVkSamplerYcbcrConversionInfoincluded in thepNextchain ofVkImageViewCreateInfo. Conversely, if aVkSamplerYcbcrConversionobject is passed toCreateImageView, an identically definedVkSamplerYcbcrConversionobject must be used when sampling the image.If the image has a multi-planar
formatandsubresourceRange.aspectMaskisIMAGE_ASPECT_COLOR_BIT, andimagehas been created with ausagevalue not containing any of theIMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR,IMAGE_USAGE_VIDEO_DECODE_SRC_BIT_KHR,IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR,IMAGE_USAGE_VIDEO_ENCODE_DST_BIT_KHR,IMAGE_USAGE_VIDEO_ENCODE_SRC_BIT_KHR, andIMAGE_USAGE_VIDEO_ENCODE_DPB_BIT_KHRflags, then theformatmust be identical to the imageformat, and the sampler to be used with the image view must enable sampler Y′CBCR conversion.If the image has a multi-planar
formatand theimagehas been created with ausagevalue containing any of theIMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR,IMAGE_USAGE_VIDEO_DECODE_SRC_BIT_KHR, andIMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHRflags, then all of the video decode operations would ignore theVkSamplerYcbcrConversionInfostructure and/or sampler Y’CBCR conversion object, associated with the image view. If the image has a multi-planarformatand theimagehas been created with ausagevalue containing any of theIMAGE_USAGE_VIDEO_ENCODE_DST_BIT_KHR,IMAGE_USAGE_VIDEO_ENCODE_SRC_BIT_KHR, andIMAGE_USAGE_VIDEO_ENCODE_DPB_BIT_KHRflags, then all of the video encode operations would ignore theVkSamplerYcbcrConversionInfostructure and/or sampler Y’CBCR conversion object, associated with the image view.If
imagewas created with theIMAGE_CREATE_MUTABLE_FORMAT_BITand the image has a multi-planarformat, and ifsubresourceRange.aspectMaskisIMAGE_ASPECT_PLANE_0_BIT,IMAGE_ASPECT_PLANE_1_BIT, orIMAGE_ASPECT_PLANE_2_BIT,formatmust 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. Thewidthandheightof 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 components 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.
Image type and image view type compatibility requirements
Valid Usage
- If
imagewas not created withIMAGE_CREATE_CUBE_COMPATIBLE_BITthenviewTypemust not beIMAGE_VIEW_TYPE_CUBEorIMAGE_VIEW_TYPE_CUBE_ARRAY - If the image cube map arrays feature is not enabled,
viewTypemust not beIMAGE_VIEW_TYPE_CUBE_ARRAY - If
imagewas created withIMAGE_TYPE_3Dbut withoutIMAGE_CREATE_2D_ARRAY_COMPATIBLE_BITset thenviewTypemust not beIMAGE_VIEW_TYPE_2DorIMAGE_VIEW_TYPE_2D_ARRAY - If
imagewas created withIMAGE_TYPE_3DandviewTypeisIMAGE_VIEW_TYPE_2DorIMAGE_VIEW_TYPE_2D_ARRAYthensubresourceRange.levelCountmust be 1 - If
imagewas created withIMAGE_TYPE_3DandviewTypeisIMAGE_VIEW_TYPE_2DorIMAGE_VIEW_TYPE_2D_ARRAYthenVkImageCreateInfo::flagsmust not contain any ofIMAGE_CREATE_SPARSE_BINDING_BIT,IMAGE_CREATE_SPARSE_RESIDENCY_BIT, andIMAGE_CREATE_SPARSE_ALIASED_BIT - If
imagewas created with asamplesvalue not equal toSAMPLE_COUNT_1_BITthenviewTypemust be eitherIMAGE_VIEW_TYPE_2DorIMAGE_VIEW_TYPE_2D_ARRAY imagemust have been created with ausagevalue containing at least one of the usages defined in the valid image usage list for image views- The format features of the resultant image view must contain at least one bit
- If
usagecontainsIMAGE_USAGE_SAMPLED_BIT, then the format features of the resultant image view must containFORMAT_FEATURE_SAMPLED_IMAGE_BIT - If
usagecontainsIMAGE_USAGE_STORAGE_BIT, then the image view’s format features must containFORMAT_FEATURE_STORAGE_IMAGE_BIT - If
usagecontainsIMAGE_USAGE_COLOR_ATTACHMENT_BIT, then the image view’s format features must containFORMAT_FEATURE_COLOR_ATTACHMENT_BIT - If
usagecontainsIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT, then the image view’s format features must containFORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT - If
usagecontainsIMAGE_USAGE_COLOR_ATTACHMENT_BIT, then the image view’s format features must containFORMAT_FEATURE_2_LINEAR_COLOR_ATTACHMENT_BIT_NV, if the image is created withIMAGE_TILING_LINEARand thelinearColorAttachmentfeature is enabled - If
usagecontainsIMAGE_USAGE_INPUT_ATTACHMENT_BIT, then the image view’s format features must containFORMAT_FEATURE_2_LINEAR_COLOR_ATTACHMENT_BIT_NV, if the image is created withIMAGE_TILING_LINEARand thelinearColorAttachmentfeature is enabled - If
usagecontainsIMAGE_USAGE_INPUT_ATTACHMENT_BIT, then the image view’s format features must contain at least one ofFORMAT_FEATURE_COLOR_ATTACHMENT_BITorFORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT subresourceRange.baseMipLevelmust be less than themipLevelsspecified inVkImageCreateInfowhenimagewas created- If
subresourceRange.levelCountis notREMAINING_MIP_LEVELS,subresourceRange.baseMipLevel + subresourceRange.levelCountmust be less than or equal to themipLevelsspecified inVkImageCreateInfowhenimagewas created - If
imagewas created withusagecontainingIMAGE_USAGE_FRAGMENT_DENSITY_MAP_BIT_EXT,subresourceRange.levelCountmust be 1 - If
imageis not a 3D image created withIMAGE_CREATE_2D_ARRAY_COMPATIBLE_BITset, orviewTypeis notIMAGE_VIEW_TYPE_2DorIMAGE_VIEW_TYPE_2D_ARRAY,subresourceRange.baseArrayLayermust be less than thearrayLayersspecified inVkImageCreateInfowhenimagewas created - If
subresourceRange.layerCountis notREMAINING_ARRAY_LAYERS,imageis not a 3D image created withIMAGE_CREATE_2D_ARRAY_COMPATIBLE_BITset, orviewTypeis notIMAGE_VIEW_TYPE_2DorIMAGE_VIEW_TYPE_2D_ARRAY,subresourceRange.layerCountmust be non-zero andsubresourceRange.baseArrayLayer + subresourceRange.layerCountmust be less than or equal to thearrayLayersspecified inVkImageCreateInfowhenimagewas created - If
imageis a 3D image created withIMAGE_CREATE_2D_ARRAY_COMPATIBLE_BITset, andviewTypeisIMAGE_VIEW_TYPE_2DorIMAGE_VIEW_TYPE_2D_ARRAY,subresourceRange.baseArrayLayermust be less than the depth computed frombaseMipLevelandextent.depthspecified inVkImageCreateInfowhenimagewas created, according to the formula defined in Image Miplevel Sizing - If
subresourceRange.layerCountis notREMAINING_ARRAY_LAYERS,imageis a 3D image created withIMAGE_CREATE_2D_ARRAY_COMPATIBLE_BITset, andviewTypeisIMAGE_VIEW_TYPE_2DorIMAGE_VIEW_TYPE_2D_ARRAY,subresourceRange.layerCountmust be non-zero andsubresourceRange.baseArrayLayer + subresourceRange.layerCountmust be less than or equal to the depth computed frombaseMipLevelandextent.depthspecified inVkImageCreateInfowhenimagewas created, according to the formula defined in Image Miplevel Sizing - If
imagewas created with theIMAGE_CREATE_MUTABLE_FORMAT_BITflag, but without theIMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BITflag, and if theformatof theimageis not a multi-planar format,formatmust be compatible with theformatused to createimage, as defined in Format Compatibility Classes - If
imagewas created with theIMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BITflag,formatmust be compatible with, or must be an uncompressed format that is size-compatible with, theformatused to createimage - If
imagewas created with theIMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BITflag, thelevelCountandlayerCountmembers ofsubresourceRangemust both be 1 - If
imagewas created with theIMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BITflag andformatis a non-compressed format,viewTypemust not beIMAGE_VIEW_TYPE_3D - If a
VkImageFormatListCreateInfostructure was included in thepNextchain of theVkImageCreateInfostructure used when creatingimageandVkImageFormatListCreateInfo::viewFormatCountis not zero thenformatmust be one of the formats inVkImageFormatListCreateInfo::pViewFormats - If
imagewas created with theIMAGE_CREATE_MUTABLE_FORMAT_BITflag, if theformatof theimageis a multi-planar format, and ifsubresourceRange.aspectMaskis one ofIMAGE_ASPECT_PLANE_0_BIT,IMAGE_ASPECT_PLANE_1_BIT, orIMAGE_ASPECT_PLANE_2_BIT, thenformatmust be compatible with theVkFormatfor the plane of theimageformatindicated bysubresourceRange.aspectMask, as defined in Compatible formats of planes of multi-planar formats - If
imagewas not created with theIMAGE_CREATE_MUTABLE_FORMAT_BITflag, or if theformatof theimageis a multi-planar format and ifsubresourceRange.aspectMaskisIMAGE_ASPECT_COLOR_BIT,formatmust be identical to theformatused to createimage - If the image
formatis one of the formats that require a sampler Y’CBCR conversion, then thepNextchain must include aVkSamplerYcbcrConversionInfostructure with a conversion value other thanNULL_HANDLE - If
formathas a_422or_420suffix thenimagemust have been created with a width that is a multiple of 2 - If
formathas a_420suffix thenimagemust have been created with a height that is a multiple of 2 - If the
pNextchain includes aVkSamplerYcbcrConversionInfostructure with aconversionvalue other thanNULL_HANDLE, all members ofcomponentsmust have the identity swizzle - If
imageis non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemoryobject viewTypemust be compatible with the type ofimageas shown in the view type compatibility table- If
imagewas created withusagecontainingIMAGE_USAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR,viewTypemust beIMAGE_VIEW_TYPE_2DorIMAGE_VIEW_TYPE_2D_ARRAY - If the
shadingRateImagefeature is enabled, and Ifimagewas created withusagecontainingIMAGE_USAGE_SHADING_RATE_IMAGE_BIT_NV,formatmust beFORMAT_R8_UINT - If the
attachmentFragmentShadingRatefeature is enabled, and theusagefor the image view includesIMAGE_USAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR, then the image view’s format features must containFORMAT_FEATURE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR - If the
attachmentFragmentShadingRatefeature is enabled, theusagefor the image view includesIMAGE_USAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR, andlayeredShadingRateAttachmentsisFALSE,subresourceRange.layerCountmust be 1 - If dynamic fragment density map feature is not enabled,
flagsmust not containIMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DYNAMIC_BIT_EXT - If deferred fragment density map feature is not enabled,
flagsmust not containIMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DEFERRED_BIT_EXT - If
flagscontainsIMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DEFERRED_BIT_EXT,flagsmust not containIMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DYNAMIC_BIT_EXT - If
imagewas created withflagscontainingIMAGE_CREATE_SUBSAMPLED_BIT_EXTandusagecontainingIMAGE_USAGE_SAMPLED_BIT,subresourceRange.layerCountmust be less than or equal toVkPhysicalDeviceFragmentDensityMap2PropertiesEXT::maxSubsampledArrayLayers - If the
invocationMaskfeature is enabled, and ifimagewas created withusagecontainingIMAGE_USAGE_INVOCATION_MASK_BIT_HUAWEI,formatmust beFORMAT_R8_UINT - If
flagsdoes not containIMAGE_VIEW_CREATE_FRAGMENT_DENSITY_MAP_DYNAMIC_BIT_EXTandimagewas created withusagecontainingIMAGE_USAGE_FRAGMENT_DENSITY_MAP_BIT_EXT, itsflagsmust not contain any ofIMAGE_CREATE_PROTECTED_BIT,IMAGE_CREATE_SPARSE_BINDING_BIT,IMAGE_CREATE_SPARSE_RESIDENCY_BIT, orIMAGE_CREATE_SPARSE_ALIASED_BIT - If the
pNextchain includes aVkImageViewUsageCreateInfostructure, andimagewas not created with aVkImageStencilUsageCreateInfostructure included in thepNextchain ofVkImageCreateInfo, itsusagemember must not include any bits that were not set in theusagemember of theVkImageCreateInfostructure used to createimage - If the
pNextchain includes aVkImageViewUsageCreateInfostructure,imagewas created with aVkImageStencilUsageCreateInfostructure included in thepNextchain ofVkImageCreateInfo, andsubresourceRange.aspectMaskincludesIMAGE_ASPECT_STENCIL_BIT, theusagemember of theVkImageViewUsageCreateInfostructure must not include any bits that were not set in theusagemember of theVkImageStencilUsageCreateInfostructure used to createimage - If the
pNextchain includes aVkImageViewUsageCreateInfostructure,imagewas created with aVkImageStencilUsageCreateInfostructure included in thepNextchain ofVkImageCreateInfo, andsubresourceRange.aspectMaskincludes bits other thanIMAGE_ASPECT_STENCIL_BIT, theusagemember of theVkImageViewUsageCreateInfostructure must not include any bits that were not set in theusagemember of theVkImageCreateInfostructure used to createimage - If
viewTypeisIMAGE_VIEW_TYPE_1D,IMAGE_VIEW_TYPE_2D, orIMAGE_VIEW_TYPE_3D; andsubresourceRange.layerCountis notREMAINING_ARRAY_LAYERS, thensubresourceRange.layerCountmust be 1 - If
viewTypeisIMAGE_VIEW_TYPE_1D,IMAGE_VIEW_TYPE_2D, orIMAGE_VIEW_TYPE_3D; andsubresourceRange.layerCountisREMAINING_ARRAY_LAYERS, then the remaining number of layers must be 1 - If
viewTypeisIMAGE_VIEW_TYPE_CUBEandsubresourceRange.layerCountis notREMAINING_ARRAY_LAYERS,subresourceRange.layerCountmust be 6 - If
viewTypeisIMAGE_VIEW_TYPE_CUBE_ARRAYandsubresourceRange.layerCountis notREMAINING_ARRAY_LAYERS,subresourceRange.layerCountmust be a multiple of 6 - If
viewTypeisIMAGE_VIEW_TYPE_CUBEandsubresourceRange.layerCountisREMAINING_ARRAY_LAYERS, the remaining number of layers must be 6 - If
viewTypeisIMAGE_VIEW_TYPE_CUBE_ARRAYandsubresourceRange.layerCountisREMAINING_ARRAY_LAYERS, the remaining number of layers must be a multiple of 6 - If the
VK_KHR_portability_subsetextension is enabled, andVkPhysicalDevicePortabilitySubsetFeaturesKHR::imageViewFormatSwizzleisFALSE, all elements ofcomponentsmust have the identity swizzle - If the
VK_KHR_portability_subsetextension is enabled, andVkPhysicalDevicePortabilitySubsetFeaturesKHR::imageViewFormatReinterpretationisFALSE, theVkFormatinformatmust not contain a different number of components, or a different number of bits in each component, than the format of theVkImageinimage - If
imagewas created withusagecontainingIMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR,IMAGE_USAGE_VIDEO_DECODE_SRC_BIT_KHR,IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR, then theviewTypemust beIMAGE_VIEW_TYPE_2DorIMAGE_VIEW_TYPE_2D_ARRAYand all members ofcomponentsmust have the identity swizzle - If
imagewas created withusagecontainingIMAGE_USAGE_VIDEO_ENCODE_DST_BIT_KHR,IMAGE_USAGE_VIDEO_ENCODE_SRC_BIT_KHR,IMAGE_USAGE_VIDEO_ENCODE_DPB_BIT_KHR, then theviewTypemust beIMAGE_VIEW_TYPE_2DorIMAGE_VIEW_TYPE_2D_ARRAYand all members ofcomponentsmust have the identity swizzle
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO- Each
pNextmember of any structure (including this one) in thepNextchain must be eitherNULLor a pointer to a valid instance ofVkImageViewASTCDecodeModeEXT,VkImageViewMinLodCreateInfoEXT,VkImageViewUsageCreateInfo,VkSamplerYcbcrConversionInfo,VkVideoDecodeH264ProfileEXT,VkVideoDecodeH265ProfileEXT,VkVideoEncodeH264ProfileEXT,VkVideoEncodeH265ProfileEXT,VkVideoProfileKHR, orVkVideoProfilesKHR - The
sTypevalue of each struct in thepNextchain must be unique flagsmust be a valid combination ofVkImageViewCreateFlagBitsvaluesimagemust be a validVkImagehandleviewTypemust be a validVkImageViewTypevalueformatmust be a validVkFormatvaluecomponentsmust be a validVkComponentMappingstructuresubresourceRangemust be a validVkImageSubresourceRangestructure
See Also
VkComponentMapping,VkImageSubresourceRange,CreateImageViewLayout
struct VkImageViewCreateInfo { VkStructureTypesType(); void const *pNext(); VkImageViewCreateFlagsflags(); VkImageimage(); VkImageViewTypeviewType(); VkFormatformat();VkComponentMappingcomponents();VkImageSubresourceRangesubresourceRange(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkImageViewCreateInfo.BufferAn array ofVkImageViewCreateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOMPONENTS
FLAGS
FORMAT
IMAGE
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
SUBRESOURCERANGE
VIEWTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkImageViewCreateInfo(java.nio.ByteBuffer container)Creates aVkImageViewCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkImageViewCreateInfocalloc()Returns a newVkImageViewCreateInfoinstance allocated withmemCalloc.static VkImageViewCreateInfo.Buffercalloc(int capacity)Returns a newVkImageViewCreateInfo.Bufferinstance allocated withmemCalloc.static VkImageViewCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageViewCreateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageViewCreateInfocallocStack()Deprecated.static VkImageViewCreateInfo.BuffercallocStack(int capacity)Deprecated.static VkImageViewCreateInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageViewCreateInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.VkComponentMappingcomponents()aVkComponentMappingstructure specifying a remapping of color components (or of depth or stencil components after they have been converted into color components).VkImageViewCreateInfocomponents(java.util.function.Consumer<VkComponentMapping> consumer)Passes thecomponents()field to the specifiedConsumer.VkImageViewCreateInfocomponents(VkComponentMapping value)Copies the specifiedVkComponentMappingto thecomponents()field.static VkImageViewCreateInfocreate()Returns a newVkImageViewCreateInfoinstance allocated withBufferUtils.static VkImageViewCreateInfo.Buffercreate(int capacity)Returns a newVkImageViewCreateInfo.Bufferinstance allocated withBufferUtils.static VkImageViewCreateInfocreate(long address)Returns a newVkImageViewCreateInfoinstance for the specified memory address.static VkImageViewCreateInfo.Buffercreate(long address, int capacity)Create aVkImageViewCreateInfo.Bufferinstance at the specified memory.static VkImageViewCreateInfocreateSafe(long address)static VkImageViewCreateInfo.BuffercreateSafe(long address, int capacity)intflags()a bitmask ofVkImageViewCreateFlagBitsdescribing additional parameters of the image view.VkImageViewCreateInfoflags(int value)Sets the specified value to theflags()field.intformat()aVkFormatdescribing the format and type used to interpret texel blocks in the image.VkImageViewCreateInfoformat(int value)Sets the specified value to theformat()field.longimage()aVkImageon which the view will be created.VkImageViewCreateInfoimage(long value)Sets the specified value to theimage()field.static VkImageViewCreateInfomalloc()Returns a newVkImageViewCreateInfoinstance allocated withmemAlloc.static VkImageViewCreateInfo.Buffermalloc(int capacity)Returns a newVkImageViewCreateInfo.Bufferinstance allocated withmemAlloc.static VkImageViewCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkImageViewCreateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageViewCreateInfoinstance allocated on the specifiedMemoryStack.static VkImageViewCreateInfomallocStack()Deprecated.static VkImageViewCreateInfo.BuffermallocStack(int capacity)Deprecated.static VkImageViewCreateInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageViewCreateInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkComponentMappingncomponents(long struct)Unsafe version ofcomponents().static voidncomponents(long struct, VkComponentMapping value)Unsafe version ofcomponents.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static intnformat(long struct)Unsafe version offormat().static voidnformat(long struct, int value)Unsafe version offormat.static longnimage(long struct)Unsafe version ofimage().static voidnimage(long struct, long value)Unsafe version ofimage.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.static VkImageSubresourceRangensubresourceRange(long struct)Unsafe version ofsubresourceRange().static voidnsubresourceRange(long struct, VkImageSubresourceRange value)Unsafe version ofsubresourceRange.static intnviewType(long struct)Unsafe version ofviewType().static voidnviewType(long struct, int value)Unsafe version ofviewType.longpNext()NULLor a pointer to a structure extending this structure.VkImageViewCreateInfopNext(long value)Sets the specified value to thepNext()field.VkImageViewCreateInfopNext(VkImageViewASTCDecodeModeEXT value)Prepends the specifiedVkImageViewASTCDecodeModeEXTvalue to thepNextchain.VkImageViewCreateInfopNext(VkImageViewMinLodCreateInfoEXT value)Prepends the specifiedVkImageViewMinLodCreateInfoEXTvalue to thepNextchain.VkImageViewCreateInfopNext(VkImageViewUsageCreateInfo value)Prepends the specifiedVkImageViewUsageCreateInfovalue to thepNextchain.VkImageViewCreateInfopNext(VkImageViewUsageCreateInfoKHR value)Prepends the specifiedVkImageViewUsageCreateInfoKHRvalue to thepNextchain.VkImageViewCreateInfopNext(VkSamplerYcbcrConversionInfo value)Prepends the specifiedVkSamplerYcbcrConversionInfovalue to thepNextchain.VkImageViewCreateInfopNext(VkSamplerYcbcrConversionInfoKHR value)Prepends the specifiedVkSamplerYcbcrConversionInfoKHRvalue to thepNextchain.VkImageViewCreateInfopNext(VkVideoDecodeH264ProfileEXT value)Prepends the specifiedVkVideoDecodeH264ProfileEXTvalue to thepNextchain.VkImageViewCreateInfopNext(VkVideoDecodeH265ProfileEXT value)Prepends the specifiedVkVideoDecodeH265ProfileEXTvalue to thepNextchain.VkImageViewCreateInfopNext(VkVideoEncodeH264ProfileEXT value)Prepends the specifiedVkVideoEncodeH264ProfileEXTvalue to thepNextchain.VkImageViewCreateInfopNext(VkVideoEncodeH265ProfileEXT value)Prepends the specifiedVkVideoEncodeH265ProfileEXTvalue to thepNextchain.VkImageViewCreateInfopNext(VkVideoProfileKHR value)Prepends the specifiedVkVideoProfileKHRvalue to thepNextchain.VkImageViewCreateInfopNext(VkVideoProfilesKHR value)Prepends the specifiedVkVideoProfilesKHRvalue to thepNextchain.VkImageViewCreateInfoset(int sType, long pNext, int flags, long image, int viewType, int format, VkComponentMapping components, VkImageSubresourceRange subresourceRange)Initializes this struct with the specified values.VkImageViewCreateInfoset(VkImageViewCreateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkImageViewCreateInfosType(int value)Sets the specified value to thesType()field.VkImageViewCreateInfosType$Default()Sets theSTRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFOvalue to thesType()field.VkImageSubresourceRangesubresourceRange()aVkImageSubresourceRangestructure selecting the set of mipmap levels and array layers to be accessible to the view.VkImageViewCreateInfosubresourceRange(java.util.function.Consumer<VkImageSubresourceRange> consumer)Passes thesubresourceRange()field to the specifiedConsumer.VkImageViewCreateInfosubresourceRange(VkImageSubresourceRange value)Copies the specifiedVkImageSubresourceRangeto thesubresourceRange()field.intviewType()aVkImageViewTypevalue specifying the type of the image view.VkImageViewCreateInfoviewType(int value)Sets the specified value to theviewType()field.
-
-
-
Constructor Detail
-
VkImageViewCreateInfo
public VkImageViewCreateInfo(java.nio.ByteBuffer container)
Creates aVkImageViewCreateInfoinstance 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.
-
flags
public int flags()
a bitmask ofVkImageViewCreateFlagBitsdescribing additional parameters of the image view.
-
image
public long image()
aVkImageon which the view will be created.
-
viewType
public int viewType()
aVkImageViewTypevalue specifying the type of the image view.
-
format
public int format()
aVkFormatdescribing the format and type used to interpret texel blocks in the image.
-
components
public VkComponentMapping components()
aVkComponentMappingstructure specifying a remapping of color components (or of depth or stencil components after they have been converted into color components).
-
subresourceRange
public VkImageSubresourceRange subresourceRange()
aVkImageSubresourceRangestructure selecting the set of mipmap levels and array layers to be accessible to the view.
-
sType
public VkImageViewCreateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkImageViewCreateInfo sType$Default()
Sets theSTRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFOvalue to thesType()field.
-
pNext
public VkImageViewCreateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
pNext
public VkImageViewCreateInfo pNext(VkImageViewASTCDecodeModeEXT value)
Prepends the specifiedVkImageViewASTCDecodeModeEXTvalue to thepNextchain.
-
pNext
public VkImageViewCreateInfo pNext(VkImageViewMinLodCreateInfoEXT value)
Prepends the specifiedVkImageViewMinLodCreateInfoEXTvalue to thepNextchain.
-
pNext
public VkImageViewCreateInfo pNext(VkImageViewUsageCreateInfo value)
Prepends the specifiedVkImageViewUsageCreateInfovalue to thepNextchain.
-
pNext
public VkImageViewCreateInfo pNext(VkImageViewUsageCreateInfoKHR value)
Prepends the specifiedVkImageViewUsageCreateInfoKHRvalue to thepNextchain.
-
pNext
public VkImageViewCreateInfo pNext(VkSamplerYcbcrConversionInfo value)
Prepends the specifiedVkSamplerYcbcrConversionInfovalue to thepNextchain.
-
pNext
public VkImageViewCreateInfo pNext(VkSamplerYcbcrConversionInfoKHR value)
Prepends the specifiedVkSamplerYcbcrConversionInfoKHRvalue to thepNextchain.
-
pNext
public VkImageViewCreateInfo pNext(VkVideoDecodeH264ProfileEXT value)
Prepends the specifiedVkVideoDecodeH264ProfileEXTvalue to thepNextchain.
-
pNext
public VkImageViewCreateInfo pNext(VkVideoDecodeH265ProfileEXT value)
Prepends the specifiedVkVideoDecodeH265ProfileEXTvalue to thepNextchain.
-
pNext
public VkImageViewCreateInfo pNext(VkVideoEncodeH264ProfileEXT value)
Prepends the specifiedVkVideoEncodeH264ProfileEXTvalue to thepNextchain.
-
pNext
public VkImageViewCreateInfo pNext(VkVideoEncodeH265ProfileEXT value)
Prepends the specifiedVkVideoEncodeH265ProfileEXTvalue to thepNextchain.
-
pNext
public VkImageViewCreateInfo pNext(VkVideoProfileKHR value)
Prepends the specifiedVkVideoProfileKHRvalue to thepNextchain.
-
pNext
public VkImageViewCreateInfo pNext(VkVideoProfilesKHR value)
Prepends the specifiedVkVideoProfilesKHRvalue to thepNextchain.
-
flags
public VkImageViewCreateInfo flags(int value)
Sets the specified value to theflags()field.
-
image
public VkImageViewCreateInfo image(long value)
Sets the specified value to theimage()field.
-
viewType
public VkImageViewCreateInfo viewType(int value)
Sets the specified value to theviewType()field.
-
format
public VkImageViewCreateInfo format(int value)
Sets the specified value to theformat()field.
-
components
public VkImageViewCreateInfo components(VkComponentMapping value)
Copies the specifiedVkComponentMappingto thecomponents()field.
-
components
public VkImageViewCreateInfo components(java.util.function.Consumer<VkComponentMapping> consumer)
Passes thecomponents()field to the specifiedConsumer.
-
subresourceRange
public VkImageViewCreateInfo subresourceRange(VkImageSubresourceRange value)
Copies the specifiedVkImageSubresourceRangeto thesubresourceRange()field.
-
subresourceRange
public VkImageViewCreateInfo subresourceRange(java.util.function.Consumer<VkImageSubresourceRange> consumer)
Passes thesubresourceRange()field to the specifiedConsumer.
-
set
public 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.
-
set
public VkImageViewCreateInfo set(VkImageViewCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImageViewCreateInfo malloc()
Returns a newVkImageViewCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageViewCreateInfo calloc()
Returns a newVkImageViewCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageViewCreateInfo create()
Returns a newVkImageViewCreateInfoinstance allocated withBufferUtils.
-
create
public static VkImageViewCreateInfo create(long address)
Returns a newVkImageViewCreateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkImageViewCreateInfo createSafe(long address)
-
malloc
public static VkImageViewCreateInfo.Buffer malloc(int capacity)
Returns a newVkImageViewCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageViewCreateInfo.Buffer calloc(int capacity)
Returns a newVkImageViewCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageViewCreateInfo.Buffer create(int capacity)
Returns a newVkImageViewCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageViewCreateInfo.Buffer create(long address, int capacity)
Create aVkImageViewCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkImageViewCreateInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkImageViewCreateInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageViewCreateInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageViewCreateInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageViewCreateInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageViewCreateInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageViewCreateInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageViewCreateInfo.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 VkImageViewCreateInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkImageViewCreateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkImageViewCreateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkImageViewCreateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkImageViewCreateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageViewCreateInfo.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().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
nimage
public static long nimage(long struct)
Unsafe version ofimage().
-
nviewType
public static int nviewType(long struct)
Unsafe version ofviewType().
-
nformat
public static int nformat(long struct)
Unsafe version offormat().
-
ncomponents
public static VkComponentMapping ncomponents(long struct)
Unsafe version ofcomponents().
-
nsubresourceRange
public static VkImageSubresourceRange nsubresourceRange(long struct)
Unsafe version ofsubresourceRange().
-
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.
-
nimage
public static void nimage(long struct, long value)Unsafe version ofimage.
-
nviewType
public static void nviewType(long struct, int value)Unsafe version ofviewType.
-
nformat
public static void nformat(long struct, int value)Unsafe version offormat.
-
ncomponents
public static void ncomponents(long struct, VkComponentMapping value)Unsafe version ofcomponents.
-
nsubresourceRange
public static void nsubresourceRange(long struct, VkImageSubresourceRange value)Unsafe version ofsubresourceRange.
-
-