Top Description Fields Constructors Methods
org.lwjgl.vulkan

public Class EXTLineRasterization

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

This extension adds some line rasterization features that are commonly used in CAD applications and supported in other APIs like OpenGL. Bresenham-style line rasterization is supported, smooth rectangular lines (coverage to alpha) are supported, and stippled lines are supported for all three line rasterization modes.
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
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 TypeField and Description
public static final int
VK_DYNAMIC_STATE_LINE_STIPPLE_EXT

Extends VkDynamicState.

public static final String
public static final int
VK_EXT_LINE_RASTERIZATION_SPEC_VERSION

The extension specification version.

public static final int
VK_LINE_RASTERIZATION_MODE_BRESENHAM_EXT

VkLineRasterizationModeEXT - Line rasterization modes Description

public static final int
VK_LINE_RASTERIZATION_MODE_DEFAULT_EXT

VkLineRasterizationModeEXT - Line rasterization modes Description

public static final int
VK_LINE_RASTERIZATION_MODE_RECTANGULAR_EXT

VkLineRasterizationModeEXT - Line rasterization modes Description

public static final int
VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT

VkLineRasterizationModeEXT - Line rasterization modes Description

public static final int
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
vkCmdSetLineStippleEXT(VkCommandBuffer
the command buffer into which the command will be recorded.
commandBuffer
,
int
the repeat factor used in stippled line rasterization.
lineStippleFactor
,
short
the bit pattern used in stippled line rasterization.
lineStipplePattern
)

Set line stipple dynamically for a command buffer.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

VK_DYNAMIC_STATE_LINE_STIPPLE_EXTback to summary
public static final int VK_DYNAMIC_STATE_LINE_STIPPLE_EXT

Extends VkDynamicState.

VK_EXT_LINE_RASTERIZATION_EXTENSION_NAMEback to summary
public static final String VK_EXT_LINE_RASTERIZATION_EXTENSION_NAME

The extension name.

VK_EXT_LINE_RASTERIZATION_SPEC_VERSIONback to summary
public static final int VK_EXT_LINE_RASTERIZATION_SPEC_VERSION

The extension specification version.

VK_LINE_RASTERIZATION_MODE_BRESENHAM_EXTback to summary
public static final int VK_LINE_RASTERIZATION_MODE_BRESENHAM_EXT

VkLineRasterizationModeEXT - Line rasterization modes

Description
See Also

VkPipelineRasterizationLineStateCreateInfoEXT, CmdSetLineRasterizationModeEXT

VK_LINE_RASTERIZATION_MODE_DEFAULT_EXTback to summary
public static final int VK_LINE_RASTERIZATION_MODE_DEFAULT_EXT

VkLineRasterizationModeEXT - Line rasterization modes

Description
See Also

VkPipelineRasterizationLineStateCreateInfoEXT, CmdSetLineRasterizationModeEXT

VK_LINE_RASTERIZATION_MODE_RECTANGULAR_EXTback to summary
public static final int VK_LINE_RASTERIZATION_MODE_RECTANGULAR_EXT

VkLineRasterizationModeEXT - Line rasterization modes

Description
See Also

VkPipelineRasterizationLineStateCreateInfoEXT, CmdSetLineRasterizationModeEXT

VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXTback to summary
public static final int VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH_EXT

VkLineRasterizationModeEXT - Line rasterization modes

Description
See Also

VkPipelineRasterizationLineStateCreateInfoEXT, CmdSetLineRasterizationModeEXT

VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_EXTback to summary
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_EXT

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_PROPERTIES_EXTback to summary
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_PROPERTIES_EXT

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXTback to summary
public static final int VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXT

Extends VkStructureType.

Enum values:

Constructor Detail

EXTLineRasterizationback to summary
protected EXTLineRasterization()

Method Detail

vkCmdSetLineStippleEXTback to summary
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 in VkPipelineDynamicStateCreateInfo::pDynamicStates. Otherwise, this state is specified by the VkPipelineRasterizationLineStateCreateInfoEXT::lineStippleFactor and VkPipelineRasterizationLineStateCreateInfoEXT::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 valid VkCommandBuffer handle
  • commandBuffer must be in the recording state
  • The VkCommandPool 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 VkCommandPool that commandBuffer was allocated from must be externally synchronized
Command Properties
Command Buffer LevelsRender Pass ScopeVideo Coding ScopeSupported Queue TypesCommand Type
Primary SecondaryBothOutsideGraphicsState
Parameters
commandBuffer:VkCommandBuffer

the command buffer into which the command will be recorded.

lineStippleFactor:int

the repeat factor used in stippled line rasterization.

lineStipplePattern:short

the bit pattern used in stippled line rasterization.