vulkan-3.1.0.0: Bindings to the Vulkan graphics API.

Safe HaskellNone
LanguageHaskell2010

Graphics.Vulkan.Extensions.VK_NV_clip_space_w_scaling

Synopsis

Documentation

cmdSetViewportWScalingNV :: forall io. MonadIO io => CommandBuffer -> ("firstViewport" ::: Word32) -> ("viewportWScalings" ::: Vector ViewportWScalingNV) -> io () Source #

vkCmdSetViewportWScalingNV - Set the viewport W scaling on a command buffer

Parameters

  • commandBuffer is the command buffer into which the command will be recorded.
  • firstViewport is the index of the first viewport whose parameters are updated by the command.
  • viewportCount is the number of viewports whose parameters are updated by the command.
  • pViewportWScalings is a pointer to an array of ViewportWScalingNV structures specifying viewport parameters.

Description

The viewport parameters taken from element i of pViewportWScalings replace the current state for the viewport index firstViewport + i, for i in [0, viewportCount).

Valid Usage

  • The sum of firstViewport and viewportCount must be between 1 and PhysicalDeviceLimits::maxViewports, inclusive

Valid Usage (Implicit)

  • pViewportWScalings must be a valid pointer to an array of viewportCount ViewportWScalingNV structures
  • commandBuffer must be in the recording state
  • The CommandPool that commandBuffer was allocated from must support graphics operations
  • viewportCount must be greater than 0

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 Levels Render Pass Scope Supported Queue Types Pipeline Type
Primary Secondary Both Graphics

See Also

CommandBuffer, ViewportWScalingNV

data ViewportWScalingNV Source #

VkViewportWScalingNV - Structure specifying a viewport

See Also

PipelineViewportWScalingStateCreateInfoNV, cmdSetViewportWScalingNV

Constructors

ViewportWScalingNV 

Fields

  • xcoeff :: Float

    xcoeff and ycoeff are the viewport’s W scaling factor for x and y respectively.

  • ycoeff :: Float
     
Instances
Show ViewportWScalingNV Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_NV_clip_space_w_scaling

Storable ViewportWScalingNV Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_NV_clip_space_w_scaling

FromCStruct ViewportWScalingNV Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_NV_clip_space_w_scaling

ToCStruct ViewportWScalingNV Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_NV_clip_space_w_scaling

Zero ViewportWScalingNV Source # 
Instance details

Defined in Graphics.Vulkan.Extensions.VK_NV_clip_space_w_scaling

data PipelineViewportWScalingStateCreateInfoNV Source #

VkPipelineViewportWScalingStateCreateInfoNV - Structure specifying parameters of a newly created pipeline viewport W scaling state

Valid Usage (Implicit)

See Also

Bool32, StructureType, ViewportWScalingNV

Constructors

PipelineViewportWScalingStateCreateInfoNV 

Fields

type NV_CLIP_SPACE_W_SCALING_EXTENSION_NAME = "VK_NV_clip_space_w_scaling" Source #

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