mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 17:05:31 +00:00
ShaderModule: Don't use Format::Type for reflection.
Previously Format::Type was used instead of wgpu::TextureComponentType so that ::Other could server as a tag value. This was confusing and almost the single use of ::Other. In a follow-up CL the format baseType is changed to be a per-aspect value, and Format::Type. This CL is a self-contained step in that direction. Bug: dawn:527 Change-Id: Ida834087f45a8fca17670ffe8ebd4d5c4f1cd423 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/30102 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Stephen White <senorblanco@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
49c30a70e8
commit
5931c0ac3b
@@ -193,9 +193,8 @@ namespace dawn_native { namespace opengl {
|
||||
GLuint textureIndex = indices[combined.textureLocation.group][bindingIndex];
|
||||
mUnitsForTextures[textureIndex].push_back(textureUnit);
|
||||
|
||||
Format::Type componentType =
|
||||
bgl->GetBindingInfo(bindingIndex).textureComponentType;
|
||||
shouldUseFiltering = componentType == Format::Type::Float;
|
||||
shouldUseFiltering = bgl->GetBindingInfo(bindingIndex).textureComponentType ==
|
||||
wgpu::TextureComponentType::Float;
|
||||
}
|
||||
{
|
||||
const BindGroupLayoutBase* bgl =
|
||||
|
||||
Reference in New Issue
Block a user