mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
dzn: Support unnormalized coordinate samplers
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20617>
This commit is contained in:
parent
552ab9c2f7
commit
4565490b71
1 changed files with 5 additions and 0 deletions
|
|
@ -3151,6 +3151,11 @@ dzn_sampler_create(struct dzn_device *device,
|
|||
}
|
||||
}
|
||||
|
||||
#if D3D12_SDK_VERSION >= 609
|
||||
if (pCreateInfo->unnormalizedCoordinates)
|
||||
sampler->desc.Flags |= D3D12_SAMPLER_FLAG_NON_NORMALIZED_COORDINATES;
|
||||
#endif
|
||||
|
||||
*out = dzn_sampler_to_handle(sampler);
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue