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¶
Instance Methods¶
withBlueprint( blueprint : PipelineBlueprint ) : string¶
Type WGSLBinaryExpression¶
( a: WGSLExpression, b: WGSLExpression ) => WGSLExpression
Type WGSLExpression¶
Type WGSLExpressionBool¶
Type WGSLExpressionF32¶
Type WGSLExpressionI32¶
Type WGSLExpressionT¶
Type WGSLExpressionU32¶
Class WGSLMainModule¶
Constructor¶
new WGSLMainModule( slots : WGSLSlot[], declarations : WGSLModuleDeclarations )¶
Instance Methods¶
withBlueprint( blueprint : PipelineBlueprint ) : string¶
Class WGSLModule¶
TODO: use this where we need
Constructor¶
new WGSLModule( name : string, declarations : WGSLModuleDeclarations )¶
Instance Methods¶
withBlueprint( blueprint : PipelineBlueprint ) : string¶
Type WGSLModuleDeclarations¶
Class WGSLReferenceModule¶
Constructor¶
new WGSLReferenceModule( name : string, declarations : WGSLModuleDeclarations )¶
Instance Methods¶
withBlueprint( blueprint : PipelineBlueprint ) : string¶
Class WGSLSlot¶
Constructor¶
new WGSLSlot( name : string, slot : ResourceSlot, bindingType : BindingType )¶
Instance Methods¶
withBlueprint( blueprint : PipelineBlueprint ) : string¶
Type WGSLStatements¶
Class WGSLStringAccumulator¶
Instance Methods¶
add( value : WGSLString )¶
withBlueprint( blueprint : PipelineBlueprint ) : string¶
Instance Properties¶
values : WGSLString[]¶
(readonly)
Class WGSLStringFunction¶
Constructor¶
new WGSLStringFunction( value : ( blueprint: PipelineBlueprint ) => string )¶
Instance Methods¶
withBlueprint( blueprint : PipelineBlueprint ) : string¶
Class WGSLStringLiteral¶
Constructor¶
new WGSLStringLiteral( value : string )¶
Instance Methods¶
withBlueprint( blueprint : PipelineBlueprint ) : string¶
Class WGSLStringModule¶
Constructor¶
new WGSLStringModule( name : string, string : WGSLString, declarations : WGSLModuleDeclarations )¶
Instance Methods¶
withBlueprint( blueprint : PipelineBlueprint ) : string¶
Type WGSLType¶
Type WGSLVariableName¶
Source Code¶
See the source for WGSLString.ts in the alpenglow repository.