Skip to main content

Abstract Class: RenderPipeline

Defined in: modules/core/src/api/adapter/resources/render-pipeline.ts:117

A compiled and linked shader program

Extends​

Constructors​

Constructor​

new RenderPipeline(device, props): RenderPipeline

Defined in: modules/core/src/api/adapter/resources/render-pipeline.ts:154

Parameters​

device​

Device

props​

RenderPipelineProps

Returns​

RenderPipeline

Overrides​

DeviceResource.constructor

Properties​

bufferLayout​

readonly bufferLayout: BufferLayout[]

Defined in: modules/core/src/api/adapter/resources/render-pipeline.ts:128

Buffer map describing buffer interleaving etc


device​

abstract readonly device: Device

Defined in: modules/core/src/api/adapter/resources/device-resource.ts:127

The device that this resource is associated with

Inherited from​

DeviceResource.device


fs​

abstract readonly fs: Shader | null

Defined in: modules/core/src/api/adapter/resources/render-pipeline.ts:123


handle​

abstract readonly handle: unknown

Defined in: modules/core/src/api/adapter/resources/device-resource.ts:129

The handle for the underlying resource, e.g. WebGL object or WebGPU handle

Inherited from​

DeviceResource.handle


hash​

hash: string = ''

Defined in: modules/core/src/api/adapter/resources/render-pipeline.ts:132

The hash of the pipeline


id​

id: string

Defined in: modules/core/src/api/adapter/resources/device-resource.ts:121

props.id, for debugging.

Inherited from​

DeviceResource.id


linkStatus​

linkStatus: "error" | "pending" | "success" = 'pending'

Defined in: modules/core/src/api/adapter/resources/render-pipeline.ts:130

The linking status of the pipeline. 'pending' if linking is asynchronous, and on production


props​

readonly props: Required<Props>

Defined in: modules/core/src/api/adapter/resources/device-resource.ts:123

The props that this resource was created with

Inherited from​

DeviceResource.props


shaderLayout​

shaderLayout: ShaderLayout

Defined in: modules/core/src/api/adapter/resources/render-pipeline.ts:126

The merged layout


sharedRenderPipeline​

sharedRenderPipeline: SharedRenderPipeline | null = null

Defined in: modules/core/src/api/adapter/resources/render-pipeline.ts:134

Optional shared backend implementation


userData​

readonly userData: Record<string, unknown> = {}

Defined in: modules/core/src/api/adapter/resources/device-resource.ts:125

User data object, reserved for the application

Inherited from​

DeviceResource.userData


vs​

abstract readonly vs: Shader

Defined in: modules/core/src/api/adapter/resources/render-pipeline.ts:122


defaultProps​

static defaultProps: Required<RenderPipelineProps>

Defined in: modules/core/src/api/adapter/resources/render-pipeline.ts:201

Default properties for resource

Overrides​

DeviceResource.defaultProps

Accessors​

[toStringTag]​

Get Signature​

get [toStringTag](): string

Defined in: modules/core/src/api/adapter/resources/render-pipeline.ts:118

Returns​

string

Overrides​

DeviceResource.[toStringTag]


destroyed​

Get Signature​

get destroyed(): boolean

Defined in: modules/core/src/api/adapter/resources/resource.ts:27

Whether destruction has completed, including when cleanup reported an error.

Returns​

boolean

Inherited from​

DeviceResource.destroyed


isErrored​

Get Signature​

get isErrored(): boolean

Defined in: modules/core/src/api/adapter/resources/render-pipeline.ts:146

Whether shader or pipeline compilation/linking has failed

Returns​

boolean


isHandleBorrowed​

Get Signature​

get isHandleBorrowed(): boolean

Defined in: modules/core/src/api/adapter/resources/device-resource.ts:146

Whether luma.gl may only reference the opaque externally owned resource handle.

Returns​

boolean

Inherited from​

DeviceResource.isHandleBorrowed


isPending​

Get Signature​

get isPending(): boolean

Defined in: modules/core/src/api/adapter/resources/render-pipeline.ts:137

Whether shader or pipeline compilation/linking is still in progress

Returns​

boolean


ownedResources​

Get Signature​

get ownedResources(): readonly Resource[]

Defined in: modules/core/src/api/adapter/resources/resource.ts:22

A snapshot of this resource's children. Mutating the snapshot cannot change ownership.

Returns​

readonly Resource[]

Inherited from​

DeviceResource.ownedResources


owner​

Get Signature​

get owner(): Resource | null

Defined in: modules/core/src/api/adapter/resources/resource.ts:17

The resource responsible for destroying this resource, or null for caller-managed lifetime.

Returns​

Resource | null

Inherited from​

DeviceResource.owner


ownsHandle​

Get Signature​

get ownsHandle(): boolean

Defined in: modules/core/src/api/adapter/resources/device-resource.ts:139

Whether luma.gl created and owns the underlying resource handle.

Returns​

boolean

Inherited from​

DeviceResource.ownsHandle

Methods​

[dispose]()​

[dispose](): void

Defined in: modules/core/src/api/adapter/resources/resource.ts:50

Destroy the resource when leaving a using scope.

Returns​

void

Inherited from​

DeviceResource.[dispose]


attachResource()​

attachResource(resource): void

Defined in: modules/core/src/api/adapter/resources/resource.ts:96

Parameters​

resource​

Resource

Returns​

void

Deprecated​

Use resource.transferOwnershipTo(this).

Inherited from​

DeviceResource.attachResource


delete()​

delete(): this

Defined in: modules/core/src/api/adapter/resources/resource.ts:90

Returns​

this

Deprecated​

Use destroy().

Inherited from​

DeviceResource.delete


destroy()​

destroy(): void

Defined in: modules/core/src/api/adapter/resources/resource.ts:55

Destroy children before this resource. Subclasses implement hooks instead of overriding.

Returns​

void

Inherited from​

DeviceResource.destroy


destroyAttachedResource()​

destroyAttachedResource(resource): void

Defined in: modules/core/src/api/adapter/resources/resource.ts:108

Parameters​

resource​

Resource

Returns​

void

Deprecated​

Check resource.owner and call resource.destroy().

Inherited from​

DeviceResource.destroyAttachedResource


destroyAttachedResources()​

destroyAttachedResources(): void

Defined in: modules/core/src/api/adapter/resources/resource.ts:115

Returns​

void

Deprecated​

Destroy individually owned resources, or destroy the owner.

Inherited from​

DeviceResource.destroyAttachedResources


detachResource()​

detachResource(resource): void

Defined in: modules/core/src/api/adapter/resources/resource.ts:101

Parameters​

resource​

Resource

Returns​

void

Deprecated​

Use resource.transferOwnershipTo(null). Only detaches a child owned by this.

Inherited from​

DeviceResource.detachResource


draw()​

abstract draw(options): boolean

Defined in: modules/core/src/api/adapter/resources/render-pipeline.ts:165

Parameters​

options​
_bindGroupCacheKeys?​

Partial<Record<number, object>>

Optional stable cache keys for backend bind-group reuse

baseVertex?​

number

bindGroups?​

Partial<Record<number, Bindings>>

Deprecated

Set bindings on RenderPass instead.

bindings?​

Bindings

Deprecated

Set bindings on RenderPass instead.

firstIndex?​

number

First index to draw from

firstInstance?​

number

First instance to draw from

firstVertex?​

number

First vertex to draw from

indexCount?​

number

Number of "rows" in index buffer

instanceCount?​

number

Number of "rows" in 'instance' buffers

isInstanced?​

boolean

Use instanced rendering?

parameters?​

RenderPipelineParameters

Parameters to be set during draw call. Note that most parameters can only be overridden in WebGL.

renderPass?​

RenderPass

Render pass to draw into (targeting screen or framebuffer)

topology?​

PrimitiveTopology

Topology. Note can only be overridden in WebGL.

transformFeedback?​

TransformFeedback

Transform feedback. WebGL only.

uniforms?​

Record<string, unknown>

WebGL-only uniforms

vertexArray​

VertexArray

vertex attributes

vertexCount?​

number

Number of "rows" in 'vertex' buffers

Returns​

boolean

Deprecated​

Use RenderPass.setPipeline(), setBindings(), setVertexArray(), and draw(). Will be removed in the next major release.


getProps()​

getProps(): object

Defined in: modules/core/src/api/adapter/resources/device-resource.ts:174

Combines a map of user props and default props, only including props from defaultProps

Returns​

object

returns a map of overridden default props

Inherited from​

DeviceResource.getProps


toJSON()​

toJSON(): string

Defined in: modules/core/src/api/adapter/resources/device-resource.ts:116

Compact serialization for assertion diffs and structured debug logs.

Returns​

string

Inherited from​

DeviceResource.toJSON


toString()​

toString(): string

Defined in: modules/core/src/api/adapter/resources/device-resource.ts:111

Returns a string representation of an object.

Returns​

string

Inherited from​

DeviceResource.toString


transferOwnershipTo()​

transferOwnershipTo(owner): this

Defined in: modules/core/src/api/adapter/resources/resource.ts:32

Transfer exclusive ownership, or return lifetime responsibility to the caller with null.

Parameters​

owner​

Resource | null

Returns​

this

Inherited from​

DeviceResource.transferOwnershipTo