mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 23:26:24 +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
@@ -62,8 +62,7 @@ void initTextures() {
|
||||
descriptor.usage = wgpu::TextureUsage::CopyDst | wgpu::TextureUsage::Sampled;
|
||||
texture = device.CreateTexture(&descriptor);
|
||||
|
||||
wgpu::SamplerDescriptor samplerDesc = utils::GetDefaultSamplerDescriptor();
|
||||
sampler = device.CreateSampler(&samplerDesc);
|
||||
sampler = device.CreateSampler();
|
||||
|
||||
// Initialize the texture with arbitrary data until we can load images
|
||||
std::vector<uint8_t> data(4 * 1024 * 1024, 0);
|
||||
|
||||
Reference in New Issue
Block a user