mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 10:25:28 +00:00
Support none visibility binding in bind group
None visibility of shader stage bindings should be supported in bind group. But Dawn can't support it. The patch fixed this issue. Bug: dawn:385 Change-Id: I5b747abead24050b56b0fd0a9de561c87df4e36e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/19340 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Yunchao He <yunchao.he@intel.com>
This commit is contained in:
committed by
Commit Bot service account
parent
871651d999
commit
582e5284d0
@@ -275,13 +275,10 @@ namespace utils {
|
||||
wgpu::BindGroupLayout MakeBindGroupLayout(
|
||||
const wgpu::Device& device,
|
||||
std::initializer_list<wgpu::BindGroupLayoutEntry> bindingsInitializer) {
|
||||
constexpr wgpu::ShaderStage kNoStages{};
|
||||
|
||||
std::vector<wgpu::BindGroupLayoutEntry> bindings;
|
||||
for (const wgpu::BindGroupLayoutEntry& binding : bindingsInitializer) {
|
||||
if (binding.visibility != kNoStages) {
|
||||
bindings.push_back(binding);
|
||||
}
|
||||
bindings.push_back(binding);
|
||||
}
|
||||
|
||||
wgpu::BindGroupLayoutDescriptor descriptor;
|
||||
|
||||
Reference in New Issue
Block a user