Fixed a bug in the constant buffer HLSL field declaration

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-13 11:13:07 +02:00
1 親 17e0be458f
コミット 50b754ac68
1ファイル変更
+1 -1
+1 -1
ファイルの表示
@@ -141,7 +141,7 @@ namespace ComputeSharp.Shaders.Translation
readOnlyBuffers.Add((GraphicsResource)fieldValue);
string typeName = HlslKnownTypes.GetMappedName(fieldType.GenericTypeArguments[0]);
processedFieldInfo = new ConstantBufferFieldInfo(typeName, fieldName, readOnlyBuffersCount++, true);
processedFieldInfo = new ConstantBufferFieldInfo(typeName, fieldName, readOnlyBuffersCount++, false);
}
else if (HlslKnownTypes.IsKnownScalarType(fieldType))
{