Skip to content

WGSLString

Overview

Represents a string of WGSL code (which may have dependencies which it can add to a blueprint).

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class WGSLString

import { WGSLString } from 'scenerystack/alpenglow';

Instance Methods

withBlueprint( blueprint : PipelineBlueprint ) : string

Type WGSLBinaryExpression

import type { WGSLBinaryExpression } from 'scenerystack/alpenglow';

( a: WGSLExpression, b: WGSLExpression ) => WGSLExpression

Type WGSLExpression

import type { WGSLExpression } from 'scenerystack/alpenglow';

WGSLString

Type WGSLExpressionBool

import type { WGSLExpressionBool } from 'scenerystack/alpenglow';

WGSLExpression

Type WGSLExpressionF32

import type { WGSLExpressionF32 } from 'scenerystack/alpenglow';

WGSLExpression

Type WGSLExpressionI32

import type { WGSLExpressionI32 } from 'scenerystack/alpenglow';

WGSLExpression

Type WGSLExpressionT

import type { WGSLExpressionT } from 'scenerystack/alpenglow';

WGSLExpression

Type WGSLExpressionU32

import type { WGSLExpressionU32 } from 'scenerystack/alpenglow';

WGSLExpression

Class WGSLMainModule

import { WGSLMainModule } from 'scenerystack/alpenglow';

Constructor

new WGSLMainModule( slots : WGSLSlot[], declarations : WGSLModuleDeclarations )

Instance Methods

withBlueprint( blueprint : PipelineBlueprint ) : string

Class WGSLModule

TODO: use this where we need

import { WGSLModule } from 'scenerystack/alpenglow';

Constructor

new WGSLModule( name : string, declarations : WGSLModuleDeclarations )

Instance Methods

withBlueprint( blueprint : PipelineBlueprint ) : string

Type WGSLModuleDeclarations

import type { WGSLModuleDeclarations } from 'scenerystack/alpenglow';

WGSLString

Class WGSLReferenceModule

import { WGSLReferenceModule } from 'scenerystack/alpenglow';

Constructor

new WGSLReferenceModule( name : string, declarations : WGSLModuleDeclarations )

Instance Methods

withBlueprint( blueprint : PipelineBlueprint ) : string

Class WGSLSlot

import { WGSLSlot } from 'scenerystack/alpenglow';

Constructor

new WGSLSlot( name : string, slot : ResourceSlot, bindingType : BindingType )

Instance Methods

withBlueprint( blueprint : PipelineBlueprint ) : string

Type WGSLStatements

import type { WGSLStatements } from 'scenerystack/alpenglow';

WGSLString

Class WGSLStringAccumulator

import { WGSLStringAccumulator } from 'scenerystack/alpenglow';

Instance Methods

add( value : WGSLString )

withBlueprint( blueprint : PipelineBlueprint ) : string

Instance Properties

values : WGSLString[]

(readonly)

Class WGSLStringFunction

import { WGSLStringFunction } from 'scenerystack/alpenglow';

Constructor

new WGSLStringFunction( value : ( blueprint: PipelineBlueprint ) => string )

Instance Methods

withBlueprint( blueprint : PipelineBlueprint ) : string

Class WGSLStringLiteral

import { WGSLStringLiteral } from 'scenerystack/alpenglow';

Constructor

new WGSLStringLiteral( value : string )

Instance Methods

withBlueprint( blueprint : PipelineBlueprint ) : string

Class WGSLStringModule

import { WGSLStringModule } from 'scenerystack/alpenglow';

Constructor

new WGSLStringModule( name : string, string : WGSLString, declarations : WGSLModuleDeclarations )

Instance Methods

withBlueprint( blueprint : PipelineBlueprint ) : string

Type WGSLType

import type { WGSLType } from 'scenerystack/alpenglow';

WGSLString

Type WGSLVariableName

import type { WGSLVariableName } from 'scenerystack/alpenglow';

WGSLString

Source Code

See the source for WGSLString.ts in the alpenglow repository.