Skip to main content
Version: 12 Dec 2024

IYcbcrConversionSamplerProvider

Public Methods

abstract bool OverrideYcbcrConversionSampler

Invoked by the YcbcrRenderer plugin on Unity's render thread. Apps wanting to override the VkSamplerYcbcrConversionCreateInfo for the hardware buffer rendering should implement this interface.

public virtual abstract bool OverrideYcbcrConversionSampler(
ref VkAndroidHardwareBufferFormatPropertiesANDROID hwBufferFormatProperties,
ref VkSamplerYcbcrConversionCreateInfo sampler
)

Parameters

TypeNameDescription
ref VkAndroidHardwareBufferFormatPropertiesANDROIDhwBufferFormatPropertiesVkAndroidHardwareBufferFormatPropertiesANDROID of the currently acquired AHardwareBuffer
ref VkSamplerYcbcrConversionCreateInfosamplerVkSamplerYcbcrConversionCreateInfo of the previous frame

Returns: true if the input sampler values were changed