namespace Brutal.VulkanApi { /// /// VkImageUsageFlagBits - Bitmask specifying intended usage of an image /// /// /// /// Bits which can be set in /// /// /// * VkImageCreateInfo::usage /// /// /// specify intended usage of an image, and are: /// /// /// // Provided by VK_VERSION_1_0 /// typedef enum VkImageUsageFlagBits { /// VK_IMAGE_USAGE_TRANSFER_SRC_BIT = 0x00000001, /// VK_IMAGE_USAGE_TRANSFER_DST_BIT = 0x00000002, /// VK_IMAGE_USAGE_SAMPLED_BIT = 0x00000004, /// VK_IMAGE_USAGE_STORAGE_BIT = 0x00000008, /// VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT = 0x00000010, /// VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000020, /// VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT = 0x00000040, /// VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT = 0x00000080, /// // Provided by VK_VERSION_1_4 /// VK_IMAGE_USAGE_HOST_TRANSFER_BIT = 0x00400000, /// // Provided by VK_KHR_video_decode_queue /// VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR = 0x00000400, /// // Provided by VK_KHR_video_decode_queue /// VK_IMAGE_USAGE_VIDEO_DECODE_SRC_BIT_KHR = 0x00000800, /// // Provided by VK_KHR_video_decode_queue /// VK_IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR = 0x00001000, /// // Provided by VK_EXT_fragment_density_map /// VK_IMAGE_USAGE_FRAGMENT_DENSITY_MAP_BIT_EXT = 0x00000200, /// // Provided by VK_KHR_fragment_shading_rate /// VK_IMAGE_USAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR = 0x00000100, /// // Provided by VK_KHR_video_encode_queue /// VK_IMAGE_USAGE_VIDEO_ENCODE_DST_BIT_KHR = 0x00002000, /// // Provided by VK_KHR_video_encode_queue /// VK_IMAGE_USAGE_VIDEO_ENCODE_SRC_BIT_KHR = 0x00004000, /// // Provided by VK_KHR_video_encode_queue /// VK_IMAGE_USAGE_VIDEO_ENCODE_DPB_BIT_KHR = 0x00008000, /// // Provided by VK_EXT_attachment_feedback_loop_layout /// VK_IMAGE_USAGE_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT = 0x00080000, /// // Provided by VK_HUAWEI_invocation_mask /// VK_IMAGE_USAGE_INVOCATION_MASK_BIT_HUAWEI = 0x00040000, /// // Provided by VK_QCOM_image_processing /// VK_IMAGE_USAGE_SAMPLE_WEIGHT_BIT_QCOM = 0x00100000, /// // Provided by VK_QCOM_image_processing /// VK_IMAGE_USAGE_SAMPLE_BLOCK_MATCH_BIT_QCOM = 0x00200000, /// // Provided by VK_ARM_tensors /// VK_IMAGE_USAGE_TENSOR_ALIASING_BIT_ARM = 0x00800000, /// // Provided by VK_QCOM_tile_memory_heap /// VK_IMAGE_USAGE_TILE_MEMORY_BIT_QCOM = 0x08000000, /// // Provided by VK_KHR_video_encode_quantization_map /// VK_IMAGE_USAGE_VIDEO_ENCODE_QUANTIZATION_DELTA_MAP_BIT_KHR = 0x02000000, /// // Provided by VK_KHR_video_encode_quantization_map /// VK_IMAGE_USAGE_VIDEO_ENCODE_EMPHASIS_MAP_BIT_KHR = 0x04000000, /// // Provided by VK_NV_shading_rate_image /// VK_IMAGE_USAGE_SHADING_RATE_IMAGE_BIT_NV = VK_IMAGE_USAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR, /// // Provided by VK_EXT_host_image_copy /// VK_IMAGE_USAGE_HOST_TRANSFER_BIT_EXT = VK_IMAGE_USAGE_HOST_TRANSFER_BIT, /// } VkImageUsageFlagBits; /// /// [Flags] public enum VkImageUsageFlags : int { /// No flags set. None = 0, /// /// TransferSrcBit specifies that the image can be used as the source of a transfer command. /// TransferSrcBit = 0x00000001, /// /// TransferDstBit specifies that the image can be used as the destination of a transfer command. /// TransferDstBit = 0x00000002, /// /// SampledBit specifies that the image can be used to create a VkImageView suitable for occupying a VkDescriptorSet slot either of type VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE or VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, and be sampled by a shader. /// SampledBit = 0x00000004, /// /// StorageBit specifies that the image can be used to create a VkImageView suitable for occupying a VkDescriptorSet slot of type VK_DESCRIPTOR_TYPE_STORAGE_IMAGE. /// StorageBit = 0x00000008, /// /// ColorAttachmentBit specifies that the image can be used to create a VkImageView suitable for use as a color or resolve attachment in a VkFramebuffer. /// ColorAttachmentBit = 0x00000010, /// /// DepthStencilAttachmentBit specifies that the image can be used to create a VkImageView suitable for use as a depth/stencil attachment in a VkFramebuffer. /// DepthStencilAttachmentBit = 0x00000020, /// /// TransientAttachmentBit specifies that implementations may: support using memory allocations^ with the VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT to back an image with this usage. This bit can be set for any image that can be used to create a VkImageView suitable for use as a color, resolve, depth/stencil, or input attachment. /// TransientAttachmentBit = 0x00000040, /// /// InputAttachmentBit specifies that the image can be used to create a VkImageView suitable for occupying VkDescriptorSet slot of type VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT; be read from a shader as an input attachment; and be used as an input attachment in a framebuffer. /// InputAttachmentBit = 0x00000080, /// /// HostTransferBit /// HostTransferBit = 0x00400000, /// /// VideoDecodeDstBitKHR /// VideoDecodeDstBitKHR = 0x00000400, /// /// VideoDecodeSrcBitKHR /// VideoDecodeSrcBitKHR = 0x00000800, /// /// VideoDecodeDpbBitKHR /// VideoDecodeDpbBitKHR = 0x00001000, /// /// FragmentDensityMapBitEXT /// FragmentDensityMapBitEXT = 0x00000200, /// /// FragmentShadingRateAttachmentBitKHR /// FragmentShadingRateAttachmentBitKHR = 0x00000100, /// /// VideoEncodeDstBitKHR /// VideoEncodeDstBitKHR = 0x00002000, /// /// VideoEncodeSrcBitKHR /// VideoEncodeSrcBitKHR = 0x00004000, /// /// VideoEncodeDpbBitKHR /// VideoEncodeDpbBitKHR = 0x00008000, /// /// AttachmentFeedbackLoopBitEXT /// AttachmentFeedbackLoopBitEXT = 0x00080000, /// /// InvocationMaskBitHUAWEI /// InvocationMaskBitHUAWEI = 0x00040000, /// /// SampleWeightBitQCOM /// SampleWeightBitQCOM = 0x00100000, /// /// SampleBlockMatchBitQCOM /// SampleBlockMatchBitQCOM = 0x00200000, /// /// TensorAliasingBitARM /// TensorAliasingBitARM = 0x00800000, /// /// TileMemoryBitQCOM /// TileMemoryBitQCOM = 0x08000000, /// /// VideoEncodeQuantizationDeltaMapBitKHR /// VideoEncodeQuantizationDeltaMapBitKHR = 0x02000000, /// /// VideoEncodeEmphasisMapBitKHR /// VideoEncodeEmphasisMapBitKHR = 0x04000000, /// /// ShadingRateImageBitNV /// ShadingRateImageBitNV = FragmentShadingRateAttachmentBitKHR, /// /// HostTransferBitEXT /// HostTransferBitEXT = HostTransferBit, /// /// FlagBitsMaxEnum /// FlagBitsMaxEnum = 0x7FFFFFFF, } }