webgpuComputePipelineContext.js 658 B

1234567891011121314151617181920212223
  1. /** @internal */
  2. export class WebGPUComputePipelineContext {
  3. get isAsync() {
  4. return false;
  5. }
  6. get isReady() {
  7. if (this.isAsync) {
  8. // When async mode is implemented, this should return true if the pipeline is ready
  9. return false;
  10. }
  11. // In synchronous mode, we return false, the readiness being determined by ComputeEffect
  12. return false;
  13. }
  14. constructor(engine) {
  15. this._name = "unnamed";
  16. this.engine = engine;
  17. }
  18. _getComputeShaderCode() {
  19. return this.sources?.compute;
  20. }
  21. dispose() { }
  22. }
  23. //# sourceMappingURL=webgpuComputePipelineContext.js.map