Minor bug fixes in HLSL source generation

このコミットが含まれているのは:
Sergio Pedri committed 2020-11-27 17:01:45 +01:00
1 親 ade6254ba5
コミット cb8bd46d00
2ファイル変更
+3 -2

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

+2 -1
ファイルの表示
@@ -42,7 +42,8 @@ namespace ComputeSharp.Shaders.Renderer
builder.Append(" ");
builder.Append(local.FieldType);
builder.Append(' ');
builder.AppendLine(local.FieldName);
builder.Append(local.FieldName);
builder.AppendLine(';');
}
builder.AppendLine('}');
+1 -1
ファイルの表示
@@ -197,7 +197,7 @@ namespace ComputeSharp.Shaders.Translation
string typeName = HlslKnownTypes.GetMappedName(fieldType);
this.hlslBuffersInfo.Add(new HlslBufferInfo.Constant(typeName, fieldName, (int)this.readOnlyBuffersCount++));
this.hlslBuffersInfo.Add(new HlslBufferInfo.ReadOnly(typeName, fieldName, (int)this.readOnlyBuffersCount++));
}
else if (HlslKnownTypes.IsReadWriteBufferType(fieldType))
{