mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 17:35:30 +00:00
Propagating errors out of GetFunction in MTL backend
BUG=dawn:303 Change-Id: Iff1903aecae4c043b222208b3eab5efdf9774b52 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/14501 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
69cdaf94df
commit
5c413afdc7
@@ -139,14 +139,16 @@ TEST_P(ObjectCachingTest, ComputePipelineDeduplicationOnShaderModule) {
|
||||
wgpu::ShaderModule module =
|
||||
utils::CreateShaderModule(device, utils::SingleShaderStage::Compute, R"(
|
||||
#version 450
|
||||
shared uint i;
|
||||
void main() {
|
||||
int i = 0;
|
||||
i = 0;
|
||||
})");
|
||||
wgpu::ShaderModule sameModule =
|
||||
utils::CreateShaderModule(device, utils::SingleShaderStage::Compute, R"(
|
||||
#version 450
|
||||
shared uint i;
|
||||
void main() {
|
||||
int i = 0;
|
||||
i = 0;
|
||||
})");
|
||||
wgpu::ShaderModule otherModule =
|
||||
utils::CreateShaderModule(device, utils::SingleShaderStage::Compute, R"(
|
||||
@@ -195,8 +197,9 @@ TEST_P(ObjectCachingTest, ComputePipelineDeduplicationOnLayout) {
|
||||
desc.computeStage.module =
|
||||
utils::CreateShaderModule(device, utils::SingleShaderStage::Compute, R"(
|
||||
#version 450
|
||||
shared uint i;
|
||||
void main() {
|
||||
int i = 0;
|
||||
i = 0;
|
||||
})");
|
||||
|
||||
desc.layout = pl;
|
||||
@@ -311,8 +314,9 @@ TEST_P(ObjectCachingTest, RenderPipelineDeduplicationOnFragmentModule) {
|
||||
wgpu::ShaderModule otherModule =
|
||||
utils::CreateShaderModule(device, utils::SingleShaderStage::Fragment, R"(
|
||||
#version 450
|
||||
layout (location = 0) out vec4 color;
|
||||
void main() {
|
||||
int i = 0;
|
||||
color = vec4(0.0);
|
||||
})");
|
||||
|
||||
EXPECT_NE(module.Get(), otherModule.Get());
|
||||
|
||||
Reference in New Issue
Block a user