three 基础库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
479 B

2 years ago
import WebGPUUniformsGroup from '../WebGPUUniformsGroup.js';
class WebGPUNodeUniformsGroup extends WebGPUUniformsGroup {
constructor( shaderStage ) {
super( 'nodeUniforms' );
let shaderStageVisibility;
if ( shaderStage === 'vertex' ) shaderStageVisibility = GPUShaderStage.VERTEX;
else if ( shaderStage === 'fragment' ) shaderStageVisibility = GPUShaderStage.FRAGMENT;
this.setVisibility( shaderStageVisibility );
}
}
export default WebGPUNodeUniformsGroup;