vulkan-3.26.1: Bindings to the Vulkan graphics API.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Vulkan.Extensions.VK_EXT_depth_bias_control

Description

Name

VK_EXT_depth_bias_control - device extension

VK_EXT_depth_bias_control

Name String
VK_EXT_depth_bias_control
Extension Type
Device extension
Registered Extension Number
284
Revision
1
Ratification Status
Ratified
Extension and Version Dependencies
VK_KHR_get_physical_device_properties2
Special Use
Contact
Extension Proposal
VK_EXT_depth_bias_control

Other Extension Metadata

Last Modified Date
2023-02-15
IP Status
No known IP claims.
Contributors
  • Joshua Ashton, VALVE
  • Hans-Kristian Arntzen, VALVE
  • Mike Blumenkrantz, VALVE
  • Georg Lehmann, VALVE
  • Piers Daniell, NVIDIA
  • Lionel Landwerlin, INTEL
  • Tobias Hector, AMD
  • Ricardo Garcia, IGALIA
  • Jan-Harald Fredriksen, ARM
  • Shahbaz Youssefi, GOOGLE
  • Tom Olson, ARM

Description

This extension adds a new structure, DepthBiasRepresentationInfoEXT, that can be added to a pNext chain of PipelineRasterizationStateCreateInfo and allows setting the scaling and representation of depth bias for a pipeline.

This state can also be set dynamically by using the new structure mentioned above in combination with the new cmdSetDepthBias2EXT command.

New Commands

New Structures

New Enums

New Enum Constants

Version History

  • Revision 1, 2022-09-22 (Joshua Ashton)

    • Initial draft.

See Also

DepthBiasInfoEXT, DepthBiasRepresentationEXT, DepthBiasRepresentationInfoEXT, PhysicalDeviceDepthBiasControlFeaturesEXT, cmdSetDepthBias2EXT

Document Notes

For more information, see the Vulkan Specification

This page is a generated document. Fixes and changes should be made to the generator scripts, not directly.

Synopsis

Documentation

cmdSetDepthBias2EXT Source #

Arguments

:: forall a io. (Extendss DepthBiasInfoEXT a, PokeChain a, MonadIO io) 
=> CommandBuffer

commandBuffer is the command buffer into which the command will be recorded.

-> DepthBiasInfoEXT a

pDepthBiasInfo is a pointer to a DepthBiasInfoEXT structure specifying depth bias parameters.

-> io () 

vkCmdSetDepthBias2EXT - Set depth bias factors and clamp dynamically for a command buffer

Description

This command is functionally identical to cmdSetDepthBias, but includes extensible sub-structures that include sType and pNext parameters, allowing them to be more easily extended.

Valid Usage (Implicit)

  • pDepthBiasInfo must be a valid pointer to a valid DepthBiasInfoEXT structure
  • commandBuffer must be in the recording state
  • The CommandPool that commandBuffer was allocated from must support graphics operations
  • This command must only be called outside of a video coding scope

Host Synchronization

  • Host access to commandBuffer must be externally synchronized
  • Host access to the CommandPool that commandBuffer was allocated from must be externally synchronized

Command Properties

'

Command Buffer LevelsRender Pass ScopeVideo Coding ScopeSupported Queue TypesCommand Type
Primary SecondaryBoth Outside Graphics State

See Also

VK_EXT_depth_bias_control, CommandBuffer, DepthBiasInfoEXT

data DepthBiasInfoEXT (es :: [Type]) Source #

VkDepthBiasInfoEXT - Structure specifying depth bias parameters

Description

If pNext does not contain a DepthBiasRepresentationInfoEXT structure, then this command is equivalent to including a DepthBiasRepresentationInfoEXT with depthBiasExact set to FALSE and depthBiasRepresentation set to DEPTH_BIAS_REPRESENTATION_LEAST_REPRESENTABLE_VALUE_FORMAT_EXT.

Valid Usage

  • If the depthBiasClamp feature is not enabled, depthBiasClamp must be 0.0

Valid Usage (Implicit)

  • pNext must be NULL or a pointer to a valid instance of DepthBiasRepresentationInfoEXT
  • The sType value of each struct in the pNext chain must be unique

See Also

VK_EXT_depth_bias_control, StructureType, cmdSetDepthBias2EXT

Constructors

DepthBiasInfoEXT 

Fields

  • next :: Chain es

    pNext is NULL or a pointer to a structure extending this structure.

  • depthBiasConstantFactor :: Float

    depthBiasConstantFactor is a scalar factor controlling the constant depth value added to each fragment.

  • depthBiasClamp :: Float

    depthBiasClamp is the maximum (or minimum) depth bias of a fragment.

  • depthBiasSlopeFactor :: Float

    depthBiasSlopeFactor is a scalar factor applied to a fragment’s slope in depth bias calculations.

Instances

Instances details
Extensible DepthBiasInfoEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

Methods

extensibleTypeName :: String Source #

getNext :: forall (es :: [Type]). DepthBiasInfoEXT es -> Chain es Source #

setNext :: forall (ds :: [Type]) (es :: [TYPE LiftedRep]). DepthBiasInfoEXT ds -> Chain es -> DepthBiasInfoEXT es Source #

extends :: forall e b proxy. Typeable e => proxy e -> (Extends DepthBiasInfoEXT e => b) -> Maybe b Source #

Show (Chain es) => Show (DepthBiasInfoEXT es) Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

(Extendss DepthBiasInfoEXT es, PeekChain es) => FromCStruct (DepthBiasInfoEXT es) Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

(Extendss DepthBiasInfoEXT es, PokeChain es) => ToCStruct (DepthBiasInfoEXT es) Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

es ~ ('[] :: [Type]) => Zero (DepthBiasInfoEXT es) Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

data DepthBiasRepresentationInfoEXT Source #

VkDepthBiasRepresentationInfoEXT - Structure specifying depth bias parameters

Valid Usage

Valid Usage (Implicit)

See Also

VK_EXT_depth_bias_control, Bool32, DepthBiasRepresentationEXT, StructureType

Constructors

DepthBiasRepresentationInfoEXT 

Fields

Instances

Instances details
Storable DepthBiasRepresentationInfoEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

Show DepthBiasRepresentationInfoEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

Eq DepthBiasRepresentationInfoEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

FromCStruct DepthBiasRepresentationInfoEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

ToCStruct DepthBiasRepresentationInfoEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

Zero DepthBiasRepresentationInfoEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

data PhysicalDeviceDepthBiasControlFeaturesEXT Source #

VkPhysicalDeviceDepthBiasControlFeaturesEXT - Structure indicating support for depth bias scaling and representation control

Members

This structure describes the following feature:

Valid Usage (Implicit)

See Also

VK_EXT_depth_bias_control, Bool32, StructureType

Constructors

PhysicalDeviceDepthBiasControlFeaturesEXT 

Fields

Instances

Instances details
Storable PhysicalDeviceDepthBiasControlFeaturesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

Show PhysicalDeviceDepthBiasControlFeaturesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

Eq PhysicalDeviceDepthBiasControlFeaturesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

FromCStruct PhysicalDeviceDepthBiasControlFeaturesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

ToCStruct PhysicalDeviceDepthBiasControlFeaturesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

Zero PhysicalDeviceDepthBiasControlFeaturesEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

newtype DepthBiasRepresentationEXT Source #

VkDepthBiasRepresentationEXT - Specify the depth bias representation

See Also

VK_EXT_depth_bias_control, DepthBiasRepresentationInfoEXT

Instances

Instances details
Storable DepthBiasRepresentationEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

Read DepthBiasRepresentationEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

Show DepthBiasRepresentationEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

Eq DepthBiasRepresentationEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

Ord DepthBiasRepresentationEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

Zero DepthBiasRepresentationEXT Source # 
Instance details

Defined in Vulkan.Extensions.VK_EXT_depth_bias_control

type EXT_DEPTH_BIAS_CONTROL_EXTENSION_NAME = "VK_EXT_depth_bias_control" Source #

pattern EXT_DEPTH_BIAS_CONTROL_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #