antvis / g-device-api

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

WGSL Vertex Shader 中支持纹理采样 #201

Open xiaoiver opened 1 month ago

xiaoiver commented 1 month ago

目前 WebGPU 下,如果在 Vertex Shader 中使用 uniform sampler2D,转译后会报错。

Issues-translate-bot commented 1 month ago

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


Title: Texture sampling is supported in WGSL Vertex Shader

Currently under WebGPU, if you use uniform sampler2D in Vertex Shader, an error will be reported after translation.