Add internal [EmbeddedBytecode] tests

このコミットが含まれているのは:
Sergio Pedri committed 2021-12-07 22:22:33 +01:00
1 親 ca8e5da433
コミット 9b2518cd54
2ファイル変更
+80 -1

検索条件に一致するファイルはありません

+1 -1
ファイルの表示
@@ -228,7 +228,7 @@ internal static class ShaderRunner<T>
[MethodImpl(MethodImplOptions.NoInlining)]
private static unsafe void LoadShader(int threadsX, int threadsY, int threadsZ, ref T shader, out ICachedShader shaderData)
{
if (shader.TryGetBytecode(threadsX, threadsY, threadsZ, out ReadOnlySpan<byte> bytecode))
if (Unsafe.NullRef<T>().TryGetBytecode(threadsX, threadsY, threadsZ, out ReadOnlySpan<byte> bytecode))
{
shaderData = new ICachedShader.Embedded(bytecode);
}