Propagate comparison sampler support from spvc
Roll third_party/shaderc/ f175adffa..802636496 (5 commits)
f175adffa9..8026364968
$ git log f175adffa..802636496 --date=short --no-merges --format='%ad %ae %s'
2020-04-07 rharrison Add concept of comparison sampler to API (#1036)
2020-04-06 rharrison Start shaderc v2020.1
2020-04-06 rharrison Finalize shaderc v2020.0
2020-04-06 rharrison Update CHANGES
2020-04-06 rharrison Rolling 5 dependencies and updating exceptions (#1035)
Created with:
roll-dep third_party/shaderc
BUG=dawn:367
Change-Id: I10c80c2d5ac839eaa33765f845e8680ab759e3a8
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/19061
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
This commit is contained in:
parent
d9d9d1ec73
commit
61e170b3c5
2
DEPS
2
DEPS
|
@ -79,7 +79,7 @@ deps = {
|
|||
'condition': 'dawn_standalone',
|
||||
},
|
||||
'third_party/shaderc': {
|
||||
'url': '{chromium_git}/external/github.com/google/shaderc@f175adffa9d2da6ae18a5f8d54e7b5f27df0f1c2',
|
||||
'url': '{chromium_git}/external/github.com/google/shaderc@8026364968acb2e55390f6ccf295740ab818ebda',
|
||||
'condition': 'dawn_standalone',
|
||||
},
|
||||
|
||||
|
|
|
@ -110,6 +110,9 @@ namespace dawn_native {
|
|||
case shaderc_spvc_binding_type_readonly_storage_buffer:
|
||||
return wgpu::BindingType::ReadonlyStorageBuffer;
|
||||
case shaderc_spvc_binding_type_sampler:
|
||||
case shaderc_spvc_binding_type_comparison_sampler:
|
||||
// TODO: Break out comparison sampler into its own case, once Dawn has seperate
|
||||
// handling
|
||||
return wgpu::BindingType::Sampler;
|
||||
case shaderc_spvc_binding_type_sampled_texture:
|
||||
return wgpu::BindingType::SampledTexture;
|
||||
|
@ -120,10 +123,6 @@ namespace dawn_native {
|
|||
case shaderc_spvc_binding_type_storage_texture:
|
||||
return wgpu::BindingType::StorageTexture;
|
||||
default:
|
||||
// This default needs to be here temporarily, to avoid
|
||||
// build/dependency issues when spvc adds a new entry to the
|
||||
// enum. Once the new entry is available I will land a
|
||||
// second patch to remove this default.
|
||||
UNREACHABLE();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue