Expose the two subfeatures as native features. If these feature definitions move to upstream webgpu.h in the future, it should be a trivial change to change from a native to standard feature.
Test Plan
Verify timestamp writes work in the following cases/apis:
✅Compute pipeline creation timestampWrites (WGPUFeature_TimestampQuery)
✅wgpuCommandEncoderWriteTimestamp (WGPUNativeFeature_TimestampQueryInsideEncoders)
✅wgpuComputePassEncoderWriteTimestamp (WGPUNativeFeature_TimestampQueryInsidePasses)
Expose the two subfeatures as native features. If these feature definitions move to upstream webgpu.h in the future, it should be a trivial change to change from a native to standard feature.
Test Plan
Verify timestamp writes work in the following cases/apis: ✅Compute pipeline creation
timestampWrites
(WGPUFeature_TimestampQuery
) ✅wgpuCommandEncoderWriteTimestamp (WGPUNativeFeature_TimestampQueryInsideEncoders
) ✅wgpuComputePassEncoderWriteTimestamp (WGPUNativeFeature_TimestampQueryInsidePasses
)output
modified
examples/compute/main.c