Skip to content

Commit

Permalink
wgpu: Report support for 'half' (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleino-nv authored Nov 28, 2024
1 parent bad0fa1 commit c3f1da8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wgpu/wgpu-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ Result DeviceImpl::initialize(const DeviceDesc& desc)
std::vector<WGPUFeatureName> adapterFeatures(adapterFeatureCount);
api.wgpuAdapterEnumerateFeatures(m_ctx.adapter, adapterFeatures.data());

if (api.wgpuAdapterHasFeature(m_ctx.adapter, WGPUFeatureName_ShaderF16))
m_features.push_back("half");

auto requestDeviceCallback =
[](WGPURequestDeviceStatus status, WGPUDevice device, char const* message, void* userdata)
{
Expand Down

0 comments on commit c3f1da8

Please sign in to comment.