khr_sampler_ycbcr_conversion

package
v0.0.0-...-0931f86 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2022 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ExtensionName string = C.VK_KHR_SAMPLER_YCBCR_CONVERSION_EXTENSION_NAME

	ChromaLocationCositedEven ChromaLocation = C.VK_CHROMA_LOCATION_COSITED_EVEN_KHR
	ChromaLocationMidpoint    ChromaLocation = C.VK_CHROMA_LOCATION_MIDPOINT_KHR

	ObjectTypeSamplerYcbcrConversion core1_0.ObjectType = C.VK_OBJECT_TYPE_SAMPLER_YCBCR_CONVERSION_KHR

	FormatB10X6G10X6R10X6G10X6HorizontalChromaComponentPacked     core1_0.Format = C.VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16_KHR
	FormatB12X4G12X4R12X4G12X4HorizontalChromaComponentPacked     core1_0.Format = C.VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16_KHR
	FormatB16G16R16G16HorizontalChroma                            core1_0.Format = C.VK_FORMAT_B16G16R16G16_422_UNORM_KHR
	FormatB8G8R8G8HorizontalChroma                                core1_0.Format = C.VK_FORMAT_B8G8R8G8_422_UNORM_KHR
	FormatG10X6B10X6G10X6R10X6HorizontalChromaComponentPacked     core1_0.Format = C.VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16_KHR
	FormatG10X6_B10X6R10X6_2PlaneDualChromaComponentPacked        core1_0.Format = C.VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16_KHR
	FormatG10X6_B10X6R10X6_2PlaneHorizontalChromaComponentPacked  core1_0.Format = C.VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16_KHR
	FormatG10X6_B10X6_R10X6_3PlaneDualChromaComponentPacked       core1_0.Format = C.VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16_KHR
	FormatG10X6_B10X6_R10X6_3PlaneHorizontalChromaComponentPacked core1_0.Format = C.VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_422_UNORM_3PACK16_KHR
	FormatG10X6_B10X6_R10X6_3PlaneNoChromaComponentPacked         core1_0.Format = C.VK_FORMAT_G10X6_B10X6_R10X6_3PLANE_444_UNORM_3PACK16_KHR
	FormatG12X4B12X4G12X4R12X4_HorizontalChromaComponentPacked    core1_0.Format = C.VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16_KHR
	FormatG12X4_B12X4R12X4_2PlaneDualChromaComponentPacked        core1_0.Format = C.VK_FORMAT_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16_KHR
	FormatG12X4_B12X4R12X4_2PlaneHorizontalChromaComponentPacked  core1_0.Format = C.VK_FORMAT_G12X4_B12X4R12X4_2PLANE_422_UNORM_3PACK16_KHR
	FormatG12X4_B12X4_R12X4_3PlaneDualChromaComponentPacked       core1_0.Format = C.VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16_KHR
	FormatG12X4_B12X4_R12X4_3PlaneHorizontalChromaComponentPacked core1_0.Format = C.VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_422_UNORM_3PACK16_KHR
	FormatG12X4_B12X4_R12X4_3PlaneNoChromaComponentPacked         core1_0.Format = C.VK_FORMAT_G12X4_B12X4_R12X4_3PLANE_444_UNORM_3PACK16_KHR
	FormatG16B16G16R16_HorizontalChroma                           core1_0.Format = C.VK_FORMAT_G16B16G16R16_422_UNORM_KHR
	FormatG16_B16R16_2PlaneDualChroma                             core1_0.Format = C.VK_FORMAT_G16_B16R16_2PLANE_420_UNORM_KHR
	FormatG16_B16R16_2PlaneHorizontalChroma                       core1_0.Format = C.VK_FORMAT_G16_B16R16_2PLANE_422_UNORM_KHR
	FormatG16_B16_R16_3PlaneDualChroma                            core1_0.Format = C.VK_FORMAT_G16_B16_R16_3PLANE_420_UNORM_KHR
	FormatG16_B16_R16_3PlaneHorizontalChroma                      core1_0.Format = C.VK_FORMAT_G16_B16_R16_3PLANE_422_UNORM_KHR
	FormatG16_B16_R16_3PlaneNoChroma                              core1_0.Format = C.VK_FORMAT_G16_B16_R16_3PLANE_444_UNORM_KHR
	FormatG8B8G8R8_HorizontalChroma                               core1_0.Format = C.VK_FORMAT_G8B8G8R8_422_UNORM_KHR
	FormatG8_B8R8_2PlaneDualChroma                                core1_0.Format = C.VK_FORMAT_G8_B8R8_2PLANE_420_UNORM_KHR
	FormatG8_B8R8_2PlaneHorizontalChroma                          core1_0.Format = C.VK_FORMAT_G8_B8R8_2PLANE_422_UNORM_KHR
	FormatG8_B8_R8_3PlaneDualChroma                               core1_0.Format = C.VK_FORMAT_G8_B8_R8_3PLANE_420_UNORM_KHR
	FormatG8_B8_R8_3PlaneHorizontalChroma                         core1_0.Format = C.VK_FORMAT_G8_B8_R8_3PLANE_422_UNORM_KHR
	FormatG8_B8_R8_3PlaneNoChroma                                 core1_0.Format = C.VK_FORMAT_G8_B8_R8_3PLANE_444_UNORM_KHR
	FormatR10X6G10X6B10X6A10X6UnsignedNormalizedComponentPacked   core1_0.Format = C.VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16_KHR
	FormatR10X6G10X6UnsignedNormalizedComponentPacked             core1_0.Format = C.VK_FORMAT_R10X6G10X6_UNORM_2PACK16_KHR
	FormatR10X6UnsignedNormalizedComponentPacked                  core1_0.Format = C.VK_FORMAT_R10X6_UNORM_PACK16_KHR
	FormatR12X4G12X4B12X4A12X4UnsignedNormalizedComponentPacked   core1_0.Format = C.VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16_KHR
	FormatR12X4G12X4UnsignedNormalizedComponentPacked             core1_0.Format = C.VK_FORMAT_R12X4G12X4_UNORM_2PACK16_KHR
	FormatR12X4UnsignedNormalizedComponentPacked                  core1_0.Format = C.VK_FORMAT_R12X4_UNORM_PACK16_KHR

	FormatFeatureCositedChromaSamples                                             core1_0.FormatFeatureFlags = C.VK_FORMAT_FEATURE_COSITED_CHROMA_SAMPLES_BIT_KHR
	FormatFeatureDisjoint                                                         core1_0.FormatFeatureFlags = C.VK_FORMAT_FEATURE_DISJOINT_BIT_KHR
	FormatFeatureMidpointChromaSamples                                            core1_0.FormatFeatureFlags = C.VK_FORMAT_FEATURE_MIDPOINT_CHROMA_SAMPLES_BIT_KHR
	FormatFeatureSampledImageYcbcrConversionChromaReconstructionExplicit          core1_0.FormatFeatureFlags = C.VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_BIT_KHR
	FormatFeatureSampledImageYcbcrConversionChromaReconstructionExplicitForceable core1_0.FormatFeatureFlags = C.VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_CHROMA_RECONSTRUCTION_EXPLICIT_FORCEABLE_BIT_KHR
	FormatFeatureSampledImageYcbcrConversionLinearFilter                          core1_0.FormatFeatureFlags = C.VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_LINEAR_FILTER_BIT_KHR
	FormatFeatureSampledImageYcbcrConversionSeparateReconstructionFilter          core1_0.FormatFeatureFlags = C.VK_FORMAT_FEATURE_SAMPLED_IMAGE_YCBCR_CONVERSION_SEPARATE_RECONSTRUCTION_FILTER_BIT_KHR

	ImageAspectPlane0 core1_0.ImageAspectFlags = C.VK_IMAGE_ASPECT_PLANE_0_BIT_KHR
	ImageAspectPlane1 core1_0.ImageAspectFlags = C.VK_IMAGE_ASPECT_PLANE_1_BIT_KHR
	ImageAspectPlane2 core1_0.ImageAspectFlags = C.VK_IMAGE_ASPECT_PLANE_2_BIT_KHR

	ImageCreateDisjoint core1_0.ImageCreateFlags = C.VK_IMAGE_CREATE_DISJOINT_BIT_KHR

	SamplerYcbcrModelConversionRGBIdentity   SamplerYcbcrModelConversion = C.VK_SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY_KHR
	SamplerYcbcrModelConversionYcbcr2020     SamplerYcbcrModelConversion = C.VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_2020_KHR
	SamplerYcbcrModelConversionYcbcr601      SamplerYcbcrModelConversion = C.VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_601_KHR
	SamplerYcbcrModelConversionYcbcr709      SamplerYcbcrModelConversion = C.VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_709_KHR
	SamplerYcbcrModelConversionYcbcrIdentity SamplerYcbcrModelConversion = C.VK_SAMPLER_YCBCR_MODEL_CONVERSION_YCBCR_IDENTITY_KHR

	SamplerYcbcrRangeITUFull   SamplerYcbcrRange = C.VK_SAMPLER_YCBCR_RANGE_ITU_FULL_KHR
	SamplerYcbcrRangeITUNarrow SamplerYcbcrRange = C.VK_SAMPLER_YCBCR_RANGE_ITU_NARROW_KHR
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BindImagePlaneMemoryInfo

type BindImagePlaneMemoryInfo struct {
	PlaneAspect core1_0.ImageAspectFlags

	common.NextOptions
}

func (BindImagePlaneMemoryInfo) PopulateCPointer

func (o BindImagePlaneMemoryInfo) PopulateCPointer(allocator *cgoparam.Allocator, preallocatedPointer unsafe.Pointer, next unsafe.Pointer) (unsafe.Pointer, error)

type ChromaLocation

type ChromaLocation int32

func (ChromaLocation) Register

func (e ChromaLocation) Register(str string)

func (ChromaLocation) String

func (e ChromaLocation) String() string

type Extension

type Extension interface {
	CreateSamplerYcbcrConversion(device core1_0.Device, o SamplerYcbcrConversionCreateInfo, allocator *driver.AllocationCallbacks) (SamplerYcbcrConversion, common.VkResult, error)
}

type ImagePlaneMemoryRequirementsInfo

type ImagePlaneMemoryRequirementsInfo struct {
	PlaneAspect core1_0.ImageAspectFlags

	common.NextOptions
}

func (ImagePlaneMemoryRequirementsInfo) PopulateCPointer

func (o ImagePlaneMemoryRequirementsInfo) PopulateCPointer(allocator *cgoparam.Allocator, preallocatedPointer unsafe.Pointer, next unsafe.Pointer) (unsafe.Pointer, error)

type PhysicalDeviceSamplerYcbcrConversionFeatures

type PhysicalDeviceSamplerYcbcrConversionFeatures struct {
	SamplerYcbcrConversion bool

	common.NextOptions
	common.NextOutData
}

func (PhysicalDeviceSamplerYcbcrConversionFeatures) PopulateCPointer

func (o PhysicalDeviceSamplerYcbcrConversionFeatures) PopulateCPointer(allocator *cgoparam.Allocator, preallocatedPointer unsafe.Pointer, next unsafe.Pointer) (unsafe.Pointer, error)

func (*PhysicalDeviceSamplerYcbcrConversionFeatures) PopulateHeader

func (o *PhysicalDeviceSamplerYcbcrConversionFeatures) PopulateHeader(allocator *cgoparam.Allocator, preallocatedPointer unsafe.Pointer, next unsafe.Pointer) (unsafe.Pointer, error)

func (*PhysicalDeviceSamplerYcbcrConversionFeatures) PopulateOutData

func (o *PhysicalDeviceSamplerYcbcrConversionFeatures) PopulateOutData(cDataPointer unsafe.Pointer, helpers ...any) (next unsafe.Pointer, err error)

type SamplerYcbcrConversion

type SamplerYcbcrConversion interface {
	Handle() khr_sampler_ycbcr_conversion_driver.VkSamplerYcbcrConversionKHR
	Destroy(allocator *driver.AllocationCallbacks)
}

type SamplerYcbcrConversionCreateInfo

type SamplerYcbcrConversionCreateInfo struct {
	Format                      core1_0.Format
	YcbcrModel                  SamplerYcbcrModelConversion
	YcbcrRange                  SamplerYcbcrRange
	Components                  core1_0.ComponentMapping
	XChromaOffset               ChromaLocation
	YChromaOffset               ChromaLocation
	ChromaFilter                core1_0.Filter
	ForceExplicitReconstruction bool

	common.NextOptions
}

func (SamplerYcbcrConversionCreateInfo) PopulateCPointer

func (o SamplerYcbcrConversionCreateInfo) PopulateCPointer(allocator *cgoparam.Allocator, preallocatedPointer unsafe.Pointer, next unsafe.Pointer) (unsafe.Pointer, error)

type SamplerYcbcrConversionImageFormatProperties

type SamplerYcbcrConversionImageFormatProperties struct {
	CombinedImageSamplerDescriptorCount int

	common.NextOutData
}

func (*SamplerYcbcrConversionImageFormatProperties) PopulateHeader

func (o *SamplerYcbcrConversionImageFormatProperties) PopulateHeader(allocator *cgoparam.Allocator, preallocatedPointer unsafe.Pointer, next unsafe.Pointer) (unsafe.Pointer, error)

func (*SamplerYcbcrConversionImageFormatProperties) PopulateOutData

func (o *SamplerYcbcrConversionImageFormatProperties) PopulateOutData(cDataPointer unsafe.Pointer, helpers ...any) (next unsafe.Pointer, err error)

type SamplerYcbcrConversionInfo

type SamplerYcbcrConversionInfo struct {
	Conversion SamplerYcbcrConversion

	common.NextOptions
}

func (SamplerYcbcrConversionInfo) PopulateCPointer

func (o SamplerYcbcrConversionInfo) PopulateCPointer(allocator *cgoparam.Allocator, preallocatedPointer unsafe.Pointer, next unsafe.Pointer) (unsafe.Pointer, error)

type SamplerYcbcrModelConversion

type SamplerYcbcrModelConversion int32

func (SamplerYcbcrModelConversion) Register

func (e SamplerYcbcrModelConversion) Register(str string)

func (SamplerYcbcrModelConversion) String

type SamplerYcbcrRange

type SamplerYcbcrRange int32

func (SamplerYcbcrRange) Register

func (e SamplerYcbcrRange) Register(str string)

func (SamplerYcbcrRange) String

func (e SamplerYcbcrRange) String() string

type VulkanExtension

type VulkanExtension struct {
	// contains filtered or unexported fields
}

func CreateExtensionFromDevice

func CreateExtensionFromDevice(device core1_0.Device) *VulkanExtension

Directories

Path Synopsis
Package mock_sampler_ycbcr_conversion is a generated GoMock package.
Package mock_sampler_ycbcr_conversion is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL