mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 23:26:24 +00:00
Make dawn_native use the webgpu.h header
BUG=dawn:22 Change-Id: I66e2d998f5e09030e40ec88813cd65c492018fd0 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/12541 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
c833c0c592
commit
1f6c8c4d54
@@ -36,26 +36,26 @@ namespace dawn_native { namespace opengl {
|
||||
}
|
||||
|
||||
switch (groupInfo.types[binding]) {
|
||||
case dawn::BindingType::UniformBuffer:
|
||||
case wgpu::BindingType::UniformBuffer:
|
||||
mIndexInfo[group][binding] = uboIndex;
|
||||
uboIndex++;
|
||||
break;
|
||||
case dawn::BindingType::Sampler:
|
||||
case wgpu::BindingType::Sampler:
|
||||
mIndexInfo[group][binding] = samplerIndex;
|
||||
samplerIndex++;
|
||||
break;
|
||||
case dawn::BindingType::SampledTexture:
|
||||
case wgpu::BindingType::SampledTexture:
|
||||
mIndexInfo[group][binding] = sampledTextureIndex;
|
||||
sampledTextureIndex++;
|
||||
break;
|
||||
|
||||
case dawn::BindingType::StorageBuffer:
|
||||
case wgpu::BindingType::StorageBuffer:
|
||||
mIndexInfo[group][binding] = ssboIndex;
|
||||
ssboIndex++;
|
||||
break;
|
||||
|
||||
case dawn::BindingType::StorageTexture:
|
||||
case dawn::BindingType::ReadonlyStorageBuffer:
|
||||
case wgpu::BindingType::StorageTexture:
|
||||
case wgpu::BindingType::ReadonlyStorageBuffer:
|
||||
UNREACHABLE();
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user