Fix max_anisotropy naming in wgpu
This commit is contained in:
parent
bfa0491f39
commit
e7482bb165
2 changed files with 2 additions and 2 deletions
|
|
@ -59,7 +59,7 @@ namespace psemek::wgpu
|
|||
mipmap_filter_mode mipmap_filter;
|
||||
geom::interval<float> lod_clamp = {0.f, 255.f};
|
||||
compare_function compare = compare_function::undefined;
|
||||
std::uint16_t maxAnisotropy = 1;
|
||||
std::uint16_t max_anisotropy = 1;
|
||||
};
|
||||
|
||||
void set_label(std::string const & label);
|
||||
|
|
|
|||
|
|
@ -338,7 +338,7 @@ namespace psemek::wgpu
|
|||
descriptor.lodMinClamp = desc.lod_clamp.min;
|
||||
descriptor.lodMaxClamp = desc.lod_clamp.max;
|
||||
descriptor.compare = (WGPUCompareFunction)desc.compare;
|
||||
descriptor.maxAnisotropy = desc.maxAnisotropy;
|
||||
descriptor.maxAnisotropy = desc.max_anisotropy;
|
||||
return sampler(wgpuDeviceCreateSampler((WGPUDevice)get(), &descriptor));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue