ext_sampler_filter_minmax

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExtensionName is "VK_EXT_sampler_filter_minmax"
	//
	// https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_EXT_sampler_filter_minmax.html
	ExtensionName string = C.VK_EXT_SAMPLER_FILTER_MINMAX_EXTENSION_NAME

	// FormatFeatureSampledImageFilterMinmax specifies the Image can be used as a sampled Image
	// with a min or max SamplerReductionMode
	//
	// https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkFormatFeatureFlagBits.html
	FormatFeatureSampledImageFilterMinmax core1_0.FormatFeatureFlags = C.VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT_EXT

	// SamplerReductionModeMax specifies that texel values are combined by taking
	// the component-wise maximum of values in the footprint with non-zero weights
	//
	// https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkSamplerReductionMode.html
	SamplerReductionModeMax SamplerReductionMode = C.VK_SAMPLER_REDUCTION_MODE_MAX_EXT
	// SamplerReductionModeMin specifies that texel values are combined by taking the
	// component-wise minimum of values in the footprint with non-zero weights
	//
	// https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkSamplerReductionMode.html
	SamplerReductionModeMin SamplerReductionMode = C.VK_SAMPLER_REDUCTION_MODE_MIN_EXT
	// SamplerReductionModeWeightedAverage specifies that texel values are combined by
	// computing a weighted average of values in the footprint
	//
	// https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkSamplerReductionMode.html
	SamplerReductionModeWeightedAverage SamplerReductionMode = C.VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_EXT
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PhysicalDeviceSamplerFilterMinmaxProperties

type PhysicalDeviceSamplerFilterMinmaxProperties struct {
	// FilterMinmaxSingleComponentFormats indicates whether a minimum set of required formats
	// support min/max filtering
	FilterMinmaxSingleComponentFormats bool
	// FilterMinmaxImageComponentMapping indicates whether the implementation support non-identity
	// component mapping of the Image when doing min/max filtering
	FilterMinmaxImageComponentMapping bool

	common.NextOutData
}

PhysicalDeviceSamplerFilterMinmaxProperties describes Sampler filter minmax limits that can be supported by an implementation

https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkPhysicalDeviceSamplerFilterMinmaxProperties.html

func (*PhysicalDeviceSamplerFilterMinmaxProperties) PopulateHeader

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

func (*PhysicalDeviceSamplerFilterMinmaxProperties) PopulateOutData

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

type SamplerReductionMode

type SamplerReductionMode int32

SamplerReductionMode specifies reduction mode for texture filtering

https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkSamplerReductionMode.html

func (SamplerReductionMode) Register

func (e SamplerReductionMode) Register(str string)

func (SamplerReductionMode) String

func (e SamplerReductionMode) String() string

type SamplerReductionModeCreateInfo

type SamplerReductionModeCreateInfo struct {
	// ReductionMode controls how texture filtering combines texel values
	ReductionMode SamplerReductionMode

	common.NextOptions
}

SamplerReductionModeCreateInfo specifies a Sampler reduction mode

https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkSamplerReductionModeCreateInfoEXT.html

func (SamplerReductionModeCreateInfo) PopulateCPointer

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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