getMipmapPipeline method
dynamic
getMipmapPipeline(
- dynamic format
Implementation
getMipmapPipeline(format) {
var pipeline = this.pipelines[format];
if (pipeline == undefined) {
pipeline = this.device.createRenderPipeline(GPURenderPipelineDescriptor(
vertex: GPUVertexState(
module: mipmapVertexShaderModule, entryPoint: 'main'),
fragment: GPUFragmentState(
module: mipmapFragmentShaderModule,
entryPoint: 'main',
targets: GPUColorTargetState(format: format)),
primitive: GPUPrimitiveState(
topology: GPUPrimitiveTopology.TriangleStrip,
stripIndexFormat: GPUIndexFormat.Uint32),
multisample: GPUMultisampleState()));
this.pipelines[format] = pipeline;
}
return pipeline;
}