mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-03 18:55:39 +00:00
Implement these for all the writers. SPIR-V reader not implemented (the old overloads weren't implemented either). Deprecate the old overloads. Fixed: tint:54 Change-Id: If66d26dbac3389ff604734f31b426abe47868b91 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/59302 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: James Price <jrprice@google.com>
25 lines
562 B
HLSL
25 lines
562 B
HLSL
intrinsics/gen/modf/e38ae6.wgsl:29:18 warning: use of deprecated intrinsic
|
|
var res: f32 = modf(1.0, &arg_1);
|
|
^^^^
|
|
|
|
groupshared float arg_1;
|
|
|
|
void modf_e38ae6() {
|
|
float res = modf(1.0f, arg_1);
|
|
}
|
|
|
|
struct tint_symbol_1 {
|
|
uint local_invocation_index : SV_GroupIndex;
|
|
};
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void compute_main(tint_symbol_1 tint_symbol) {
|
|
const uint local_invocation_index = tint_symbol.local_invocation_index;
|
|
if ((local_invocation_index == 0u)) {
|
|
arg_1 = 0.0f;
|
|
}
|
|
GroupMemoryBarrierWithGroupSync();
|
|
modf_e38ae6();
|
|
return;
|
|
}
|