antvis / g-device-api

A Device API references WebGPU implementations
https://observablehq.com/@antv/g-device-api
8 stars 1 forks source link

WebGPU 下需要支持 stencilRead / WriteMask #164

Closed xiaoiver closed 1 month ago

xiaoiver commented 5 months ago

https://www.khronos.org/opengl/wiki/Stencil_Test https://www.w3.org/TR/webgpu/#dom-gpudepthstencilstate-stencilreadmask

目前 translateDepthStencilState 时写死了默认值:

stencilReadMask: 1,
stencilWriteMask: 1,
Issues-translate-bot commented 5 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: WebGPU needs to support stencilRead / WriteMask

https://www.khronos.org/opengl/wiki/Stencil_Test https://www.w3.org/TR/webgpu/#dom-gpudepthstencilstate-stencilreadmask

Currently translateDepthStencilState has a hard-coded default value:

stencilReadMask: 1,
stencilWriteMask: 1,
xiaoiver commented 1 month ago
截屏2024-05-16 下午2 05 01