Skip to content

commentWGSL

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/alpenglow/blob/main/js/webgpu/wgsl/gpu/commentWGSL.ts for the most up-to-date information.

Overview

Support for adding in comments to the resulting generated shader code that won't get removed by the typical process that removes comments. Useful for noting templates used, or really anything else that can benefit from seeing debugging comments in the generated shader code.

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

Source Code

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