setWGSLScriptSource abstract method

Future<HighlightResult> setWGSLScriptSource(
  1. String scriptId,
  2. String scriptName,
  3. String source, {
  4. bool highlight = false,
})

Set a WGSL shader source. Same as setScriptSource but marks the script as WGSL so the workspace uses naga for validation/highlighting/formatting instead of Luau.

Implementation

Future<HighlightResult> setWGSLScriptSource(
  String scriptId,
  String scriptName,
  String source, {
  bool highlight = false,
});