using System.Runtime.Versioning; namespace Brutal.VulkanApi.Android { /// /// VkAndroidHardwareBufferFormatPropertiesANDROID - Structure describing the image format properties of an Android hardware buffer /// /// /// /// To obtain format properties of an Android hardware buffer, include a /// VkAndroidHardwareBufferFormatPropertiesANDROID structure in the /// pNext chain of the VkAndroidHardwareBufferPropertiesANDROID /// structure passed to vkGetAndroidHardwareBufferPropertiesANDROID. /// This structure is defined as: /// /// /// // Provided by VK_ANDROID_external_memory_android_hardware_buffer /// typedef struct VkAndroidHardwareBufferFormatPropertiesANDROID { /// VkStructureType sType; /// void* pNext; /// VkFormat format; /// uint64_t externalFormat; /// VkFormatFeatureFlags formatFeatures; /// VkComponentMapping samplerYcbcrConversionComponents; /// VkSamplerYcbcrModelConversion suggestedYcbcrModel; /// VkSamplerYcbcrRange suggestedYcbcrRange; /// VkChromaLocation suggestedXChromaOffset; /// VkChromaLocation suggestedYChromaOffset; /// } VkAndroidHardwareBufferFormatPropertiesANDROID; /// /// [StructLayout(LayoutKind.Explicit, Size = 72)] [SupportedOSPlatform("android")] public unsafe partial struct VkAndroidHardwareBufferFormatPropertiesANDROID() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.ANDROIDHardwareBufferFormatPropertiesANDROID; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Format is the Vulkan format corresponding to the Android hardware buffer's format, or VK_FORMAT_UNDEFINED if there is not an equivalent Vulkan format. /// [FieldOffset(16)] public VkFormat Format; /// /// ExternalFormat is an implementation-defined external format identifier for use with VkExternalFormatANDROID. It must not be zero. /// [FieldOffset(24)] public nint ExternalFormat; /// /// FormatFeatures describes the capabilities of this external format when used with an image bound to memory imported from buffer. /// [FieldOffset(32)] public VkFormatFeatureFlags FormatFeatures; /// /// SamplerYcbcrConversionComponents is the component swizzle that should be used in VkSamplerYcbcrConversionCreateInfo. /// [FieldOffset(36)] public VkComponentMapping SamplerYcbcrConversionComponents; /// /// SuggestedYcbcrModel is a suggested color model to use in the VkSamplerYcbcrConversionCreateInfo. /// [FieldOffset(52)] public VkSamplerYCbCrModelConversion SuggestedYcbcrModel; /// /// SuggestedYcbcrRange is a suggested numerical value range to use in VkSamplerYcbcrConversionCreateInfo. /// [FieldOffset(56)] public VkSamplerYCbCrRange SuggestedYcbcrRange; /// /// SuggestedXChromaOffset is a suggested X chroma offset to use in VkSamplerYcbcrConversionCreateInfo. /// [FieldOffset(60)] public VkChromaLocation SuggestedXChromaOffset; /// /// SuggestedYChromaOffset is a suggested Y chroma offset to use in VkSamplerYcbcrConversionCreateInfo. /// [FieldOffset(64)] public VkChromaLocation SuggestedYChromaOffset; } }