Skip to content

BlitShader

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/alpenglow/blob/main/js/webgpu/BlitShader.ts for the most up-to-date information.

Overview

Shader for blitting things to a Canvas if needed

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class BlitShader

import { BlitShader } from 'scenerystack/alpenglow';

Constructor

new BlitShader( device : GPUDevice, format : GPUTextureFormat )

Instance Methods

dispatch( encoder : GPUCommandEncoder, outTextureView : GPUTextureView, sourceTextureView : GPUTextureView )

Instance Properties

module : GPUShaderModule

(readonly)

bindGroupLayout : GPUBindGroupLayout

(readonly)

pipeline : GPURenderPipeline

(readonly)

Source Code

See the source for BlitShader.ts in the alpenglow repository.