wgsl property

String get wgsl

text as WGSL. Throws a StateError for a stage compiled to another target.

Implementation

String get wgsl => target == ShaderTarget.wgsl
    ? text!
    : throw StateError('this stage was compiled to ${target.name}');