chromium/third_party/blink/renderer/modules/webgpu/gpu_programmable_stage.idl

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://gpuweb.github.io/gpuweb/

dictionary GPUProgrammableStage {
    required GPUShaderModule module;
    USVString entryPoint;

    // Should have a default of {}, but Blink doesn't seem to support that yet.
    record<USVString, GPUPipelineConstantValue> constants;
};

// May represent WGSL’s bool, f32, i32, u32, and f16 if enabled.
typedef double GPUPipelineConstantValue;