Package org.lwjgl.vulkan
Class VkImageCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageCreateInfo
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkImageCreateInfo extends Struct
Khronos Reference Page
Vulkan SpecificationContains information about how an image should be created.
Valid Usage
sTypemust beSTRUCTURE_TYPE_IMAGE_CREATE_INFOpNextmust beNULLflagsmust be a valid combination ofVkImageCreateFlagBitsvaluesimageTypemust be a validVkImageTypevalueformatmust be a validVkFormatvaluesamplesmust be a validVkSampleCountFlagBitsvaluetilingmust be a validVkImageTilingvalueusagemust be a valid combination ofVkImageUsageFlagBitsvaluesusagemust not be 0sharingModemust be a validVkSharingModevalueinitialLayoutmust be a validVkImageLayoutvalue- If
sharingModeisSHARING_MODE_CONCURRENT,pQueueFamilyIndicesmust be a pointer to an array ofqueueFamilyIndexCountuint32_tvalues - If
sharingModeisSHARING_MODE_CONCURRENT,queueFamilyIndexCountmust be greater than 1 formatmust not beFORMAT_UNDEFINED- The
width,height, anddepthmembers ofextentmust all be greater than 0 mipLevelsmust be greater than 0arrayLayersmust be greater than 0- If
imageTypeisIMAGE_TYPE_1D,extent.widthmust be less than or equal toVkPhysicalDeviceLimits::maxImageDimension1D, orVkImageFormatProperties::maxExtent.width (as returned byGetPhysicalDeviceImageFormatPropertieswithformat,type,tiling,usageandflagsequal to those in this structure) - whichever is higher - If
imageTypeisIMAGE_TYPE_2Dandflagsdoes not containIMAGE_CREATE_CUBE_COMPATIBLE_BIT,extent.widthandextent.heightmust be less than or equal toVkPhysicalDeviceLimits::maxImageDimension2D, orVkImageFormatProperties::maxExtent.width/height (as returned byGetPhysicalDeviceImageFormatPropertieswithformat,type,tiling,usageandflagsequal to those in this structure) - whichever is higher - If
imageTypeisIMAGE_TYPE_2DandflagscontainsIMAGE_CREATE_CUBE_COMPATIBLE_BIT,extent.widthandextent.heightmust be less than or equal toVkPhysicalDeviceLimits::maxImageDimensionCube, orVkImageFormatProperties::maxExtent.width/height (as returned byGetPhysicalDeviceImageFormatPropertieswithformat,type,tiling,usageandflagsequal to those in this structure) - whichever is higher - If
imageTypeisIMAGE_TYPE_2DandflagscontainsIMAGE_CREATE_CUBE_COMPATIBLE_BIT,extent.widthandextent.heightmust be equal - If
imageTypeisIMAGE_TYPE_3D,extent.width,extent.heightandextent.depthmust be less than or equal toVkPhysicalDeviceLimits::maxImageDimension3D, orVkImageFormatProperties::maxExtent.width/height/depth (as returned byGetPhysicalDeviceImageFormatPropertieswithformat,type,tiling,usageandflagsequal to those in this structure) - whichever is higher - If
imageTypeisIMAGE_TYPE_1D, bothextent.heightandextent.depthmust be 1 - If
imageTypeisIMAGE_TYPE_2D,extent.depthmust be 1 mipLevelsmust be less than or equal tofloor(log2(max(extent.width, extent.height, extent.depth))) + 1- If any of
extent.width,extent.heightorextent.depthare greater than the equivalently named members ofVkPhysicalDeviceLimits::maxImageDimension3D,mipLevelsmust be less than or equal toVkImageFormatProperties::maxMipLevels(as returned byGetPhysicalDeviceImageFormatPropertieswithformat,type,tiling,usageandflagsequal to those in this structure) arrayLayersmust be less than or equal toVkPhysicalDeviceLimits::maxImageArrayLayers, orVkImageFormatProperties::maxArrayLayers(as returned byGetPhysicalDeviceImageFormatPropertieswithformat,type,tiling,usageandflagsequal to those in this structure) - whichever is highersamplesmust be a bit value that is set inVkPhysicalDeviceLimits::sampleCountsreturned byGetPhysicalDeviceProperties, orVkImageFormatProperties::sampleCountsreturned byGetPhysicalDeviceImageFormatPropertieswithformat,type,tiling,usageandflagsequal to those in this structure- If
usageincludesIMAGE_USAGE_COLOR_ATTACHMENT_BIT,IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT,IMAGE_USAGE_TRANSIENT_ATTACHMENT_BITorIMAGE_USAGE_INPUT_ATTACHMENT_BIT,extent.widthmust be less than or equal toVkPhysicalDeviceLimits::maxFramebufferWidth - If
usageincludesIMAGE_USAGE_COLOR_ATTACHMENT_BIT,IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT,IMAGE_USAGE_TRANSIENT_ATTACHMENT_BITorIMAGE_USAGE_INPUT_ATTACHMENT_BIT,extent.heightmust be less than or equal toVkPhysicalDeviceLimits::maxFramebufferHeight - If
usageincludesIMAGE_USAGE_COLOR_ATTACHMENT_BIT,samplesmust be a bit value that is set inVkPhysicalDeviceLimits::framebufferColorSampleCounts - If
usageincludesIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT, andformatincludes a depth aspect,samplesmust be a bit value that is set inVkPhysicalDeviceLimits::framebufferDepthSampleCounts - If
usageincludesIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT, andformatincludes a stencil aspect,samplesmust be a bit value that is set inVkPhysicalDeviceLimits::framebufferStencilSampleCounts - If
usageincludesIMAGE_USAGE_SAMPLED_BIT, andformatincludes a color aspect,samplesmust be a bit value that is set inVkPhysicalDeviceLimits::sampledImageColorSampleCounts - If
usageincludesIMAGE_USAGE_SAMPLED_BIT, andformatincludes a depth aspect,samplesmust be a bit value that is set inVkPhysicalDeviceLimits::sampledImageDepthSampleCounts - If
usageincludesIMAGE_USAGE_SAMPLED_BIT, andformatis an integer format,samplesmust be a bit value that is set inVkPhysicalDeviceLimits::sampledImageIntegerSampleCounts - If
usageincludesIMAGE_USAGE_STORAGE_BIT,samplesmust be a bit value that is set inVkPhysicalDeviceLimits::storageImageSampleCounts - If the ETC2 texture compression feature is not enabled,
formatmust not beFORMAT_ETC2_R8G8B8_UNORM_BLOCK,FORMAT_ETC2_R8G8B8_SRGB_BLOCK,FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK,FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK,FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK,FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK,FORMAT_EAC_R11_UNORM_BLOCK,FORMAT_EAC_R11_SNORM_BLOCK,FORMAT_EAC_R11G11_UNORM_BLOCK, orFORMAT_EAC_R11G11_SNORM_BLOCK - If the ASTC LDR texture compression feature is not enabled,
formatmust not beFORMAT_ASTC_4x4_UNORM_BLOCK,FORMAT_ASTC_4x4_SRGB_BLOCK,FORMAT_ASTC_5x4_UNORM_BLOCK,FORMAT_ASTC_5x4_SRGB_BLOCK,FORMAT_ASTC_5x5_UNORM_BLOCK,FORMAT_ASTC_5x5_SRGB_BLOCK,FORMAT_ASTC_6x5_UNORM_BLOCK,FORMAT_ASTC_6x5_SRGB_BLOCK,FORMAT_ASTC_6x6_UNORM_BLOCK,FORMAT_ASTC_6x6_SRGB_BLOCK,FORMAT_ASTC_8x5_UNORM_BLOCK,FORMAT_ASTC_8x5_SRGB_BLOCK,FORMAT_ASTC_8x6_UNORM_BLOCK,FORMAT_ASTC_8x6_SRGB_BLOCK,FORMAT_ASTC_8x8_UNORM_BLOCK,FORMAT_ASTC_8x8_SRGB_BLOCK,FORMAT_ASTC_10x5_UNORM_BLOCK,FORMAT_ASTC_10x5_SRGB_BLOCK,FORMAT_ASTC_10x6_UNORM_BLOCK,FORMAT_ASTC_10x6_SRGB_BLOCK,FORMAT_ASTC_10x8_UNORM_BLOCK,FORMAT_ASTC_10x8_SRGB_BLOCK,FORMAT_ASTC_10x10_UNORM_BLOCK,FORMAT_ASTC_10x10_SRGB_BLOCK,FORMAT_ASTC_12x10_UNORM_BLOCK,FORMAT_ASTC_12x10_SRGB_BLOCK,FORMAT_ASTC_12x12_UNORM_BLOCK, orFORMAT_ASTC_12x12_SRGB_BLOCK - If the BC texture compression feature is not enabled,
formatmust not beFORMAT_BC1_RGB_UNORM_BLOCK,FORMAT_BC1_RGB_SRGB_BLOCK,FORMAT_BC1_RGBA_UNORM_BLOCK,FORMAT_BC1_RGBA_SRGB_BLOCK,FORMAT_BC2_UNORM_BLOCK,FORMAT_BC2_SRGB_BLOCK,FORMAT_BC3_UNORM_BLOCK,FORMAT_BC3_SRGB_BLOCK,FORMAT_BC4_UNORM_BLOCK,FORMAT_BC4_SNORM_BLOCK,FORMAT_BC5_UNORM_BLOCK,FORMAT_BC5_SNORM_BLOCK,FORMAT_BC6H_UFLOAT_BLOCK,FORMAT_BC6H_SFLOAT_BLOCK,FORMAT_BC7_UNORM_BLOCK, orFORMAT_BC7_SRGB_BLOCK - If the multisampled storage images feature is not enabled, and
usagecontainsIMAGE_USAGE_STORAGE_BIT,samplesmust beSAMPLE_COUNT_1_BIT - If the sparse bindings feature is not enabled,
flagsmust not containIMAGE_CREATE_SPARSE_BINDING_BIT - If the sparse residency for 2D images feature is not enabled, and
imageTypeisIMAGE_TYPE_2D,flagsmust not containIMAGE_CREATE_SPARSE_RESIDENCY_BIT - If the sparse residency for 3D images feature is not enabled, and
imageTypeisIMAGE_TYPE_3D,flagsmust not containIMAGE_CREATE_SPARSE_RESIDENCY_BIT - If the sparse residency for images with 2 samples feature is not enabled,
imageTypeisIMAGE_TYPE_2D, andsamplesisSAMPLE_COUNT_2_BIT,flagsmust not containIMAGE_CREATE_SPARSE_RESIDENCY_BIT - If the sparse residency for images with 4 samples feature is not enabled,
imageTypeisIMAGE_TYPE_2D, andsamplesisSAMPLE_COUNT_4_BIT,flagsmust not containIMAGE_CREATE_SPARSE_RESIDENCY_BIT - If the sparse residency for images with 8 samples feature is not enabled,
imageTypeisIMAGE_TYPE_2D, andsamplesisSAMPLE_COUNT_8_BIT,flagsmust not containIMAGE_CREATE_SPARSE_RESIDENCY_BIT - If the sparse residency for images with 16 samples feature is not enabled,
imageTypeisIMAGE_TYPE_2D, andsamplesisSAMPLE_COUNT_16_BIT,flagsmust not containIMAGE_CREATE_SPARSE_RESIDENCY_BIT - If
tilingisIMAGE_TILING_LINEAR, andVkFormatProperties::linearTilingFeatures(as returned byGetPhysicalDeviceFormatPropertieswith the same value offormat) does not includeFORMAT_FEATURE_SAMPLED_IMAGE_BIT,usagemust not containIMAGE_USAGE_SAMPLED_BIT - If
tilingisIMAGE_TILING_LINEAR, andVkFormatProperties::linearTilingFeatures(as returned byGetPhysicalDeviceFormatPropertieswith the same value offormat) does not includeFORMAT_FEATURE_STORAGE_IMAGE_BIT,usagemust not containIMAGE_USAGE_STORAGE_BIT - If
tilingisIMAGE_TILING_LINEAR, andVkFormatProperties::linearTilingFeatures(as returned byGetPhysicalDeviceFormatPropertieswith the same value offormat) does not includeFORMAT_FEATURE_COLOR_ATTACHMENT_BIT,usagemust not containIMAGE_USAGE_COLOR_ATTACHMENT_BIT - If
tilingisIMAGE_TILING_LINEAR, andVkFormatProperties::linearTilingFeatures(as returned byGetPhysicalDeviceFormatPropertieswith the same value offormat) does not includeFORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT,usagemust not containIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT - If
tilingisIMAGE_TILING_OPTIMAL, andVkFormatProperties::optimalTilingFeatures(as returned byGetPhysicalDeviceFormatPropertieswith the same value offormat) does not includeFORMAT_FEATURE_SAMPLED_IMAGE_BIT,usagemust not containIMAGE_USAGE_SAMPLED_BIT - If
tilingisIMAGE_TILING_OPTIMAL, andVkFormatProperties::optimalTilingFeatures(as returned byGetPhysicalDeviceFormatPropertieswith the same value offormat) does not includeFORMAT_FEATURE_STORAGE_IMAGE_BIT,usagemust not containIMAGE_USAGE_STORAGE_BIT - If
tilingisIMAGE_TILING_OPTIMAL, andVkFormatProperties::optimalTilingFeatures(as returned byGetPhysicalDeviceFormatPropertieswith the same value offormat) does not includeFORMAT_FEATURE_COLOR_ATTACHMENT_BIT,usagemust not containIMAGE_USAGE_COLOR_ATTACHMENT_BIT - If
tilingisIMAGE_TILING_OPTIMAL, andVkFormatProperties::optimalTilingFeatures(as returned byGetPhysicalDeviceFormatPropertieswith the same value offormat) does not includeFORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT,usagemust not containIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT - If
flagscontainsIMAGE_CREATE_SPARSE_RESIDENCY_BITorIMAGE_CREATE_SPARSE_ALIASED_BIT, it must also containIMAGE_CREATE_SPARSE_BINDING_BIT
Member documentation
sType– the type of this structure. Must be:STRUCTURE_TYPE_IMAGE_CREATE_INFOpNext– reserved for use by extensionsflags– aVkImageCreateFlagBitsbitfield describing additional parameters of the image. One or more of:IMAGE_CREATE_CUBE_COMPATIBLE_BITIMAGE_CREATE_MUTABLE_FORMAT_BITIMAGE_CREATE_SPARSE_ALIASED_BITIMAGE_CREATE_SPARSE_BINDING_BITIMAGE_CREATE_SPARSE_RESIDENCY_BITimageType– the basic dimensionality of the image. One of:IMAGE_TYPE_1DIMAGE_TYPE_2DIMAGE_TYPE_3Dformat– aVkFormatdescribing the format and type of the data elements that will be contained in the imageextent– aVkExtent3Ddescribing the number of data elements in each dimension of the base levelmipLevels– the number of levels of detail available for minified sampling of the imagearrayLayers– the number of layers in the imagesamples– the number of sub-data element samples in the image as defined inVkSampleCountFlagBits. One or more of:SAMPLE_COUNT_16_BITSAMPLE_COUNT_1_BITSAMPLE_COUNT_2_BITSAMPLE_COUNT_32_BITSAMPLE_COUNT_4_BITSAMPLE_COUNT_64_BITSAMPLE_COUNT_8_BITtiling– the tiling arrangement of the data elements in memory. One of:IMAGE_TILING_LINEARIMAGE_TILING_OPTIMALusage– a bitfield describing the intended usage of the image. One or more of:sharingMode– the sharing mode of the image when it will be accessed by multiple queue families. One of:SHARING_MODE_CONCURRENTSHARING_MODE_EXCLUSIVEqueueFamilyIndexCount– the number of entries in thepQueueFamilyIndicesarraypQueueFamilyIndices– a list of queue families that will access this image (ignored ifsharingModeis notSHARING_MODE_CONCURRENT)initialLayout– selects the initialVkImageLayoutstate of all image subresources of the image. One of:
Layout
struct VkImageCreateInfo { VkStructureType sType; const void * pNext; VkImageCreateFlags flags; VkImageType imageType; VkFormat format;VkExtent3Dextent; uint32_t mipLevels; uint32_t arrayLayers; VkSampleCountFlagBits samples; VkImageTiling tiling; VkImageUsageFlags usage; VkSharingMode sharingMode; uint32_t queueFamilyIndexCount; const uint32_t * pQueueFamilyIndices; VkImageLayout initialLayout; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkImageCreateInfo.BufferAn array ofVkImageCreateInfostructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description VkImageCreateInfo(java.nio.ByteBuffer container)Creates aVkImageCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intarrayLayers()Returns the value of thearrayLayersfield.VkImageCreateInfoarrayLayers(int value)Sets the specified value to thearrayLayersfield.static VkImageCreateInfocalloc()Returns a newVkImageCreateInfoinstance allocated withmemCalloc.static VkImageCreateInfo.Buffercalloc(int capacity)Returns a newVkImageCreateInfo.Bufferinstance allocated withmemCalloc.static VkImageCreateInfocallocStack()Returns a newVkImageCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageCreateInfo.BuffercallocStack(int capacity)Returns a newVkImageCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageCreateInfo.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkImageCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageCreateInfocallocStack(MemoryStack stack)Returns a newVkImageCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageCreateInfocreate()Returns a newVkImageCreateInfoinstance allocated withBufferUtils.static VkImageCreateInfo.Buffercreate(int capacity)Returns a newVkImageCreateInfo.Bufferinstance allocated withBufferUtils.static VkImageCreateInfocreate(long address)Returns a newVkImageCreateInfoinstance for the specified memory address ornullif the address isNULL.static VkImageCreateInfo.Buffercreate(long address, int capacity)Create aVkImageCreateInfo.Bufferinstance at the specified memory.VkExtent3Dextent()Returns aVkExtent3Dview of theextentfield.VkImageCreateInfoextent(VkExtent3D value)Copies the specifiedVkExtent3Dto theextentfield.intflags()Returns the value of theflagsfield.VkImageCreateInfoflags(int value)Sets the specified value to theflagsfield.intformat()Returns the value of theformatfield.VkImageCreateInfoformat(int value)Sets the specified value to theformatfield.intimageType()Returns the value of theimageTypefield.VkImageCreateInfoimageType(int value)Sets the specified value to theimageTypefield.intinitialLayout()Returns the value of theinitialLayoutfield.VkImageCreateInfoinitialLayout(int value)Sets the specified value to theinitialLayoutfield.static VkImageCreateInfomalloc()Returns a newVkImageCreateInfoinstance allocated withmemAlloc.static VkImageCreateInfo.Buffermalloc(int capacity)Returns a newVkImageCreateInfo.Bufferinstance allocated withmemAlloc.static VkImageCreateInfomallocStack()Returns a newVkImageCreateInfoinstance allocated on the thread-localMemoryStack.static VkImageCreateInfo.BuffermallocStack(int capacity)Returns a newVkImageCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkImageCreateInfo.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkImageCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkImageCreateInfomallocStack(MemoryStack stack)Returns a newVkImageCreateInfoinstance allocated on the specifiedMemoryStack.intmipLevels()Returns the value of themipLevelsfield.VkImageCreateInfomipLevels(int value)Sets the specified value to themipLevelsfield.VkImageCreateInfonset(long struct)Unsafe version ofset.longpNext()Returns the value of thepNextfield.VkImageCreateInfopNext(long value)Sets the specified value to thepNextfield.java.nio.IntBufferpQueueFamilyIndices()Returns aIntBufferview of the data pointed to by thepQueueFamilyIndicesfield.VkImageCreateInfopQueueFamilyIndices(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepQueueFamilyIndicesfield.intqueueFamilyIndexCount()Returns the value of thequeueFamilyIndexCountfield.intsamples()Returns the value of thesamplesfield.VkImageCreateInfosamples(int value)Sets the specified value to thesamplesfield.VkImageCreateInfoset(int sType, long pNext, int flags, int imageType, int format, VkExtent3D extent, int mipLevels, int arrayLayers, int samples, int tiling, int usage, int sharingMode, java.nio.IntBuffer pQueueFamilyIndices, int initialLayout)Initializes this struct with the specified values.VkImageCreateInfoset(VkImageCreateInfo src)Copies the specified struct data to this struct.intsharingMode()Returns the value of thesharingModefield.VkImageCreateInfosharingMode(int value)Sets the specified value to thesharingModefield.intsizeof()Returns thesizeof(struct).intsType()Returns the value of thesTypefield.VkImageCreateInfosType(int value)Sets the specified value to thesTypefield.inttiling()Returns the value of thetilingfield.VkImageCreateInfotiling(int value)Sets the specified value to thetilingfield.intusage()Returns the value of theusagefield.VkImageCreateInfousage(int value)Sets the specified value to theusagefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)CallsVkImageCreateInfo.validate(long)for each struct contained in the specified struct array.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkImageCreateInfo
public VkImageCreateInfo(java.nio.ByteBuffer container)
Creates aVkImageCreateInfoinstance 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()
Description copied from class:StructReturns thesizeof(struct).
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
imageType
public int imageType()
Returns the value of theimageTypefield.
-
format
public int format()
Returns the value of theformatfield.
-
extent
public VkExtent3D extent()
Returns aVkExtent3Dview of theextentfield.
-
mipLevels
public int mipLevels()
Returns the value of themipLevelsfield.
-
arrayLayers
public int arrayLayers()
Returns the value of thearrayLayersfield.
-
samples
public int samples()
Returns the value of thesamplesfield.
-
tiling
public int tiling()
Returns the value of thetilingfield.
-
usage
public int usage()
Returns the value of theusagefield.
-
sharingMode
public int sharingMode()
Returns the value of thesharingModefield.
-
queueFamilyIndexCount
public int queueFamilyIndexCount()
Returns the value of thequeueFamilyIndexCountfield.
-
pQueueFamilyIndices
public java.nio.IntBuffer pQueueFamilyIndices()
Returns aIntBufferview of the data pointed to by thepQueueFamilyIndicesfield.
-
initialLayout
public int initialLayout()
Returns the value of theinitialLayoutfield.
-
sType
public VkImageCreateInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkImageCreateInfo pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkImageCreateInfo flags(int value)
Sets the specified value to theflagsfield.
-
imageType
public VkImageCreateInfo imageType(int value)
Sets the specified value to theimageTypefield.
-
format
public VkImageCreateInfo format(int value)
Sets the specified value to theformatfield.
-
extent
public VkImageCreateInfo extent(VkExtent3D value)
Copies the specifiedVkExtent3Dto theextentfield.
-
mipLevels
public VkImageCreateInfo mipLevels(int value)
Sets the specified value to themipLevelsfield.
-
arrayLayers
public VkImageCreateInfo arrayLayers(int value)
Sets the specified value to thearrayLayersfield.
-
samples
public VkImageCreateInfo samples(int value)
Sets the specified value to thesamplesfield.
-
tiling
public VkImageCreateInfo tiling(int value)
Sets the specified value to thetilingfield.
-
usage
public VkImageCreateInfo usage(int value)
Sets the specified value to theusagefield.
-
sharingMode
public VkImageCreateInfo sharingMode(int value)
Sets the specified value to thesharingModefield.
-
pQueueFamilyIndices
public VkImageCreateInfo pQueueFamilyIndices(java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepQueueFamilyIndicesfield.
-
initialLayout
public VkImageCreateInfo initialLayout(int value)
Sets the specified value to theinitialLayoutfield.
-
set
public VkImageCreateInfo set(int sType, long pNext, int flags, int imageType, int format, VkExtent3D extent, int mipLevels, int arrayLayers, int samples, int tiling, int usage, int sharingMode, java.nio.IntBuffer pQueueFamilyIndices, int initialLayout)
Initializes this struct with the specified values.
-
nset
public VkImageCreateInfo nset(long struct)
Unsafe version ofset.
-
set
public VkImageCreateInfo set(VkImageCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImageCreateInfo malloc()
Returns a newVkImageCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageCreateInfo calloc()
Returns a newVkImageCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageCreateInfo create()
Returns a newVkImageCreateInfoinstance allocated withBufferUtils.
-
create
public static VkImageCreateInfo create(long address)
Returns a newVkImageCreateInfoinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkImageCreateInfo.Buffer malloc(int capacity)
Returns a newVkImageCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageCreateInfo.Buffer calloc(int capacity)
Returns a newVkImageCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageCreateInfo.Buffer create(int capacity)
Returns a newVkImageCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageCreateInfo.Buffer create(long address, int capacity)
Create aVkImageCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkImageCreateInfo mallocStack()
Returns a newVkImageCreateInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkImageCreateInfo callocStack()
Returns a newVkImageCreateInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkImageCreateInfo mallocStack(MemoryStack stack)
Returns a newVkImageCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkImageCreateInfo callocStack(MemoryStack stack)
Returns a newVkImageCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkImageCreateInfo.Buffer mallocStack(int capacity)
Returns a newVkImageCreateInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkImageCreateInfo.Buffer callocStack(int capacity)
Returns a newVkImageCreateInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkImageCreateInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkImageCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkImageCreateInfo.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkImageCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
validate
public static void validate(long array, int count)CallsVkImageCreateInfo.validate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-