mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 23:26:24 +00:00
dawn_native: deduplicate pipeline layouts
This is the first step to do pipeline deduplication. It also introduces tests for deduplication. BUG=dawn:143 Change-Id: Ib22496f543f8d1f9cfde04f725612504132c7d72 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/6861 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
cc141797df
commit
0ee9859c91
@@ -278,7 +278,7 @@ namespace utils {
|
||||
dawn::PipelineLayout MakeBasicPipelineLayout(const dawn::Device& device,
|
||||
const dawn::BindGroupLayout* bindGroupLayout) {
|
||||
dawn::PipelineLayoutDescriptor descriptor;
|
||||
if (bindGroupLayout) {
|
||||
if (bindGroupLayout != nullptr) {
|
||||
descriptor.bindGroupLayoutCount = 1;
|
||||
descriptor.bindGroupLayouts = bindGroupLayout;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user