@feng3d/render-api
    Preparing search index...

    Interface RenderPassDescriptor

    渲染通道描述

    interface RenderPassDescriptor {
        colorAttachments?: readonly RenderPassColorAttachment[];
        depthStencilAttachment?: RenderPassDepthStencilAttachment;
        label?: string;
        sampleCount?: 4;
    }
    Index

    Properties

    colorAttachments?: readonly RenderPassColorAttachment[]

    颜色附件

    depthStencilAttachment?: RenderPassDepthStencilAttachment

    深度模板附件。

    当使用深度附件时,必须设置 。

    label?: string

    标签。

    用于调试。

    sampleCount?: 4

    采用次数。

    注意: WebGL2 支持。

    当值存在时,引擎将会自动创建支持multisampleIGLRenderbuffer用于接收颜色附件的结果。在渲染通道执行结束后在由IGLRenderbuffer拷贝到对应纹理上。

    https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/renderbufferStorageMultisample

    WebGPU: 是否开启多重采样。WebGPU貌似只支持4重采样。如果在颜色附件中没有给出支持多重采样的纹理时则引擎将会自动为其添加。