Fixed incorrect HLSL generation with constant buffers
このコミットが含まれているのは:
1 親
34ff214b44
コミット
88f2c9e08a
2ファイル変更
+6
-2
検索条件に一致するファイルはありません
@@ -96,7 +96,7 @@ namespace ComputeSharp.Shaders.Renderer
|
||||
builder.Append(buffer.FieldType);
|
||||
builder.Append(' ');
|
||||
builder.Append(buffer.FieldName);
|
||||
builder.Append("[2];");
|
||||
builder.AppendLine("[2];");
|
||||
builder.AppendLine('}');
|
||||
break;
|
||||
|
||||
|
||||
@@ -29,7 +29,11 @@ namespace ComputeSharp.Shaders.Translation
|
||||
/// <summary>
|
||||
/// The number of constant buffers to define in the shader.
|
||||
/// </summary>
|
||||
private uint constantBuffersCount;
|
||||
/// <remarks>
|
||||
/// This starts at 1 as there's always an initial constant buffer before user-defined ones, containing
|
||||
/// the captured scalar and vector values as well as the iteration ranges for the shader dispatch.
|
||||
/// </remarks>
|
||||
private uint constantBuffersCount = 1;
|
||||
|
||||
/// <summary>
|
||||
/// The number of readonly buffers to define in the shader.
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする