Added pixel shader dispatch test, minor bug fix
このコミットが含まれているのは:
1 親
76d2f7d83e
コミット
877b32befc
2ファイル変更
+41
-5
検索条件に一致するファイルはありません
@@ -174,11 +174,6 @@ namespace ComputeSharp.Shaders.Translation
|
||||
BindingFlags.Public |
|
||||
BindingFlags.NonPublic).ToArray();
|
||||
|
||||
if (shaderFields.Count == 0)
|
||||
{
|
||||
ThrowHelper.ThrowInvalidOperationException("The shader body must contain at least one field");
|
||||
}
|
||||
|
||||
List<D3D12_DESCRIPTOR_RANGE1> d3D12DescriptorRanges1 = new();
|
||||
|
||||
// Add the implicit texture descriptor if the shader is a pixel shader
|
||||
@@ -198,6 +193,11 @@ namespace ComputeSharp.Shaders.Translation
|
||||
}
|
||||
}
|
||||
|
||||
if (shaderFields.Count == 0 && d3D12DescriptorRanges1.Count == 0)
|
||||
{
|
||||
ThrowHelper.ThrowInvalidOperationException("The shader body must contain at least one field");
|
||||
}
|
||||
|
||||
// Inspect the captured fields
|
||||
foreach (FieldInfo fieldInfo in shaderFields)
|
||||
{
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする