Add and generate IShader.ConstantBufferSize API
このコミットが含まれているのは:
1 親
5b8113c2ce
コミット
d90266fc61
6ファイル変更
+38
-15
検索条件に一致するファイルはありません
+1
-1
@@ -24,7 +24,7 @@ partial class IShaderGenerator
|
||||
|
||||
using (writer.WriteBlock())
|
||||
{
|
||||
writer.WriteLine($"global::System.Span<uint> span0 = stackalloc uint[{info.Root32BitConstantCount}];");
|
||||
writer.WriteLine($"global::System.Span<uint> span0 = stackalloc uint[{info.ConstantBufferSizeInBytes}];");
|
||||
writer.WriteLineIf($"global::System.Span<ulong> span1 = stackalloc ulong[{info.ResourceCount}];", info.ResourceCount > 0);
|
||||
writer.WriteLine("ref uint r0 = ref span0[0];");
|
||||
writer.WriteLineIf("ref ulong r1 = ref span1[0];", info.ResourceCount > 0);
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする