Header menu logo Nu

Contour Module

Slug GPU contour pipeline (analytic coverage via horizontal + vertical ray casting).

Functions and values

Function or value Description

Contour.BandDataSizeInitial

Full Usage: Contour.BandDataSizeInitial

Returns: int
Returns: int

Contour.CurvesMax

Full Usage: Contour.CurvesMax

Returns: int
Returns: int

Contour.ShapeDataSizeInitial

Full Usage: Contour.ShapeDataSizeInitial

Returns: int
Returns: int

Contour.createPipeline resolveTextureFormat context

Full Usage: Contour.createPipeline resolveTextureFormat context

Parameters:
Returns: VulkanBuffer * VulkanBuffer * VulkanBuffer * VulkanBuffer * VulkanBuffer * Pipeline

Create a Vulkan pipeline for drawing contours.

resolveTextureFormat : VkFormat
context : VulkanContext
Returns: VulkanBuffer * VulkanBuffer * VulkanBuffer * VulkanBuffer * VulkanBuffer * Pipeline

Contour.drawContour contour absolute viewProjectionClipAbsolute viewProjectionClipRelative modelViewProjection clipOpt viewport resolveTexture (arg9, arg10, arg11, arg12, arg13, arg14) context

Full Usage: Contour.drawContour contour absolute viewProjectionClipAbsolute viewProjectionClipRelative modelViewProjection clipOpt viewport resolveTexture (arg9, arg10, arg11, arg12, arg13, arg14) context

Parameters:

Draw a Contour as up to two separate Slug passes (fill then stroke).

contour : Contour
absolute : bool
viewProjectionClipAbsolute : inref<Matrix4x4>
viewProjectionClipRelative : inref<Matrix4x4>
modelViewProjection : inref<Matrix4x4>
clipOpt : inref<Box2 voption>
viewport : Viewport
resolveTexture : Texture
arg8 : VulkanBuffer
arg9 : VulkanBuffer
arg10 : VulkanBuffer
arg11 : VulkanBuffer
arg12 : VulkanBuffer
arg13 : Pipeline
context : VulkanContext

Contour.drawContourSlugGeometry geometry color absolute viewProjectionClipAbsolute viewProjectionClipRelative modelViewProjection clipOpt viewport resolveTexture (arg10, arg11, arg12, arg13, arg14, arg15) context

Full Usage: Contour.drawContourSlugGeometry geometry color absolute viewProjectionClipAbsolute viewProjectionClipRelative modelViewProjection clipOpt viewport resolveTexture (arg10, arg11, arg12, arg13, arg14, arg15) context

Parameters:

Low-level draw helper: uploads a ContourSlugGeometry + color to the GPU and issues one draw call.

geometry : ContourSlugGeometry
color : Color
absolute : bool
viewProjectionClipAbsolute : inref<Matrix4x4>
viewProjectionClipRelative : inref<Matrix4x4>
modelViewProjection : inref<Matrix4x4>
clipOpt : inref<Box2 voption>
viewport : Viewport
resolveTexture : Texture
arg9 : VulkanBuffer
arg10 : VulkanBuffer
arg11 : VulkanBuffer
arg12 : VulkanBuffer
arg13 : VulkanBuffer
arg14 : Pipeline
context : VulkanContext

Type something to start searching.