mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 15:46:28 +00:00
Remove utils::GetDefaultSamplerDescriptor
This helper is no longer needed now that the descriptor has full defaults and is even optional in CreateSampler. Bug: dawn:599 Change-Id: I0d25233ebb1e817ad27f3ddaca988e01e2a5298c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/40520 Commit-Queue: Stephen White <senorblanco@chromium.org> Auto-Submit: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Stephen White <senorblanco@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
14a2398e71
commit
fb2e77106a
@@ -303,19 +303,6 @@ namespace utils {
|
||||
return textureDataLayout;
|
||||
}
|
||||
|
||||
wgpu::SamplerDescriptor GetDefaultSamplerDescriptor() {
|
||||
wgpu::SamplerDescriptor desc = {};
|
||||
|
||||
desc.minFilter = wgpu::FilterMode::Linear;
|
||||
desc.magFilter = wgpu::FilterMode::Linear;
|
||||
desc.mipmapFilter = wgpu::FilterMode::Linear;
|
||||
desc.addressModeU = wgpu::AddressMode::Repeat;
|
||||
desc.addressModeV = wgpu::AddressMode::Repeat;
|
||||
desc.addressModeW = wgpu::AddressMode::Repeat;
|
||||
|
||||
return desc;
|
||||
}
|
||||
|
||||
wgpu::PipelineLayout MakeBasicPipelineLayout(const wgpu::Device& device,
|
||||
const wgpu::BindGroupLayout* bindGroupLayout) {
|
||||
wgpu::PipelineLayoutDescriptor descriptor;
|
||||
|
||||
@@ -98,7 +98,6 @@ namespace utils {
|
||||
uint32_t width,
|
||||
uint32_t height);
|
||||
|
||||
wgpu::SamplerDescriptor GetDefaultSamplerDescriptor();
|
||||
wgpu::PipelineLayout MakeBasicPipelineLayout(const wgpu::Device& device,
|
||||
const wgpu::BindGroupLayout* bindGroupLayout);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user