Class EXTLineRasterization
VK_EXT_line_rasterization
- Name String
VK_EXT_line_rasterization
- Extension Type
- Device extension
- Registered Extension Number
- 260
- Revision
- 1
- Extension and Version Dependencies
VK_KHR_get_physical_device_properties2
or Version 1.1- Special Use
- Contact
- Jeff Bolz jeffbolznv
Other Extension Metadata
- Last Modified Date
- 2019-05-09
- IP Status
- No known IP claims.
- Contributors
- Jeff Bolz, NVIDIA
- Allen Jensen, NVIDIA
- Faith Ekstrand, Intel
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
ExtendsVkDynamicState
.static final String
The extension name.static final int
The extension specification version.static final int
VkLineRasterizationModeEXT - Line rasterization modesstatic final int
VkLineRasterizationModeEXT - Line rasterization modesstatic final int
VkLineRasterizationModeEXT - Line rasterization modesstatic final int
VkLineRasterizationModeEXT - Line rasterization modesstatic final int
ExtendsVkStructureType
.static final int
ExtendsVkStructureType
.static final int
ExtendsVkStructureType
. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
vkCmdSetLineStippleEXT
(VkCommandBuffer commandBuffer, int lineStippleFactor, short lineStipplePattern) Set line stipple dynamically for a command buffer.
-
Field Details
-
VK_EXT_LINE_RASTERIZATION_SPEC_VERSION
public static final int VK_EXT_LINE_RASTERIZATION_SPEC_VERSIONThe extension specification version.- See Also:
-
VK_EXT_LINE_RASTERIZATION_EXTENSION_NAME
The extension name.- See Also:
-
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_EXT
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_EXTExtendsVkStructureType
.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXT
public static final int VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXTExtendsVkStructureType
.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_PROPERTIES_EXT
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_PROPERTIES_EXTExtendsVkStructureType
.Enum values:
- See Also:
-
VK_DYNAMIC_STATE_LINE_STIPPLE_EXT
public static final int VK_DYNAMIC_STATE_LINE_STIPPLE_EXTExtendsVkDynamicState
.- See Also:
-
VK_LINE_RASTERIZATION_MODE_DEFAULT_EXT
public static final int VK_LINE_RASTERIZATION_MODE_DEFAULT_EXTVkLineRasterizationModeEXT - Line rasterization modesDescription
LINE_RASTERIZATION_MODE_DEFAULT_EXT
is equivalent toLINE_RASTERIZATION_MODE_RECTANGULAR_EXT
ifVkPhysicalDeviceLimits
::strictLines
isTRUE
, otherwise lines are drawn as non-strictLines
parallelograms. Both of these modes are defined in Basic Line Segment Rasterization.LINE_RASTERIZATION_MODE_RECTANGULAR_EXT
specifies lines drawn as if they were rectangles extruded from the lineLINE_RASTERIZATION_MODE_BRESENHAM_EXT
specifies lines drawn by determining which pixel diamonds the line intersects and exits, as defined in Bresenham Line Segment Rasterization.LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT
specifies lines drawn if they were rectangles extruded from the line, with alpha falloff, as defined in Smooth Lines.
See Also
VkPipelineRasterizationLineStateCreateInfoEXT
,CmdSetLineRasterizationModeEXT
- See Also:
-
VK_LINE_RASTERIZATION_MODE_RECTANGULAR_EXT
public static final int VK_LINE_RASTERIZATION_MODE_RECTANGULAR_EXTVkLineRasterizationModeEXT - Line rasterization modesDescription
LINE_RASTERIZATION_MODE_DEFAULT_EXT
is equivalent toLINE_RASTERIZATION_MODE_RECTANGULAR_EXT
ifVkPhysicalDeviceLimits
::strictLines
isTRUE
, otherwise lines are drawn as non-strictLines
parallelograms. Both of these modes are defined in Basic Line Segment Rasterization.LINE_RASTERIZATION_MODE_RECTANGULAR_EXT
specifies lines drawn as if they were rectangles extruded from the lineLINE_RASTERIZATION_MODE_BRESENHAM_EXT
specifies lines drawn by determining which pixel diamonds the line intersects and exits, as defined in Bresenham Line Segment Rasterization.LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT
specifies lines drawn if they were rectangles extruded from the line, with alpha falloff, as defined in Smooth Lines.
See Also
VkPipelineRasterizationLineStateCreateInfoEXT
,CmdSetLineRasterizationModeEXT
- See Also:
-
VK_LINE_RASTERIZATION_MODE_BRESENHAM_EXT
public static final int VK_LINE_RASTERIZATION_MODE_BRESENHAM_EXTVkLineRasterizationModeEXT - Line rasterization modesDescription
LINE_RASTERIZATION_MODE_DEFAULT_EXT
is equivalent toLINE_RASTERIZATION_MODE_RECTANGULAR_EXT
ifVkPhysicalDeviceLimits
::strictLines
isTRUE
, otherwise lines are drawn as non-strictLines
parallelograms. Both of these modes are defined in Basic Line Segment Rasterization.LINE_RASTERIZATION_MODE_RECTANGULAR_EXT
specifies lines drawn as if they were rectangles extruded from the lineLINE_RASTERIZATION_MODE_BRESENHAM_EXT
specifies lines drawn by determining which pixel diamonds the line intersects and exits, as defined in Bresenham Line Segment Rasterization.LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT
specifies lines drawn if they were rectangles extruded from the line, with alpha falloff, as defined in Smooth Lines.
See Also
VkPipelineRasterizationLineStateCreateInfoEXT
,CmdSetLineRasterizationModeEXT
- See Also:
-
VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT
public static final int VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXTVkLineRasterizationModeEXT - Line rasterization modesDescription
LINE_RASTERIZATION_MODE_DEFAULT_EXT
is equivalent toLINE_RASTERIZATION_MODE_RECTANGULAR_EXT
ifVkPhysicalDeviceLimits
::strictLines
isTRUE
, otherwise lines are drawn as non-strictLines
parallelograms. Both of these modes are defined in Basic Line Segment Rasterization.LINE_RASTERIZATION_MODE_RECTANGULAR_EXT
specifies lines drawn as if they were rectangles extruded from the lineLINE_RASTERIZATION_MODE_BRESENHAM_EXT
specifies lines drawn by determining which pixel diamonds the line intersects and exits, as defined in Bresenham Line Segment Rasterization.LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT
specifies lines drawn if they were rectangles extruded from the line, with alpha falloff, as defined in Smooth Lines.
See Also
VkPipelineRasterizationLineStateCreateInfoEXT
,CmdSetLineRasterizationModeEXT
- See Also:
-
-
Method Details
-
vkCmdSetLineStippleEXT
public static void vkCmdSetLineStippleEXT(VkCommandBuffer commandBuffer, int lineStippleFactor, short lineStipplePattern) Set line stipple dynamically for a command buffer.C Specification
To dynamically set the line stipple state, call:
void vkCmdSetLineStippleEXT( VkCommandBuffer commandBuffer, uint32_t lineStippleFactor, uint16_t lineStipplePattern);
Description
This command sets the line stipple state for subsequent drawing commands when drawing using shader objects, or when the graphics pipeline is created with
DYNAMIC_STATE_LINE_STIPPLE_EXT
set inVkPipelineDynamicStateCreateInfo
::pDynamicStates
. Otherwise, this state is specified by theVkPipelineRasterizationLineStateCreateInfoEXT
::lineStippleFactor
andVkPipelineRasterizationLineStateCreateInfoEXT
::lineStipplePattern
values used to create the currently active pipeline.Valid Usage
lineStippleFactor
must be in the range[1,256]
Valid Usage (Implicit)
commandBuffer
must be a validVkCommandBuffer
handlecommandBuffer
must be in the recording state- The
VkCommandPool
thatcommandBuffer
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
VkCommandPool
thatcommandBuffer
was allocated from must be externally synchronized
Command Properties
Command Buffer Levels Render Pass Scope Video Coding Scope Supported Queue Types Command Type Primary Secondary Both Outside Graphics State - Parameters:
commandBuffer
- the command buffer into which the command will be recorded.lineStippleFactor
- the repeat factor used in stippled line rasterization.lineStipplePattern
- the bit pattern used in stippled line rasterization.
-