Table of Contents

Class GPUShaderModule

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The GPUShaderModule interface of the {{domxref("WebGPU API", "WebGPU API", "", "nocode")}} represents an internal shader module object, a container for WGSL shader code that can be submitted to the GPU for execution by a pipeline.

[Value("GPUShaderModule")]
public class GPUShaderModule
Inheritance
GPUShaderModule
Inherited Members

Remarks

A GPUShaderModule object instance is created using CreateShaderModule(GPUShaderModuleDescriptor).

-The WebGPU API

See also on MDN

Constructors

GPUShaderModule()

public GPUShaderModule()

Methods

GetCompilationInfo()

The getCompilationInfo() method of the
GPUShaderModule interface returns a {{jsxref("Promise")}} that fulfills with a GPUCompilationInfo object containing messages generated during the GPUShaderModule's compilation.

[Value("getCompilationInfo")]
public Task<GPUCompilationInfo> GetCompilationInfo()

Returns

Task<GPUCompilationInfo>

A {{jsxref("Promise")}} that fulfills with a GPUCompilationInfo object.GPUCompilationInfo contains a messages property, which is an array of GPUCompilationMessage objects, each one containing the details of an individual compilation message.

Remarks