[D3D12] Make SHM t0 and textures t1+ in VS as in DXBC SHM will be added first

This commit is contained in:
Triang3l
2018-08-28 17:42:11 +03:00
parent b3650a4b66
commit 443e371a94
2 changed files with 7 additions and 6 deletions

View File

@@ -229,7 +229,7 @@ ID3D12RootSignature* D3D12CommandProcessor::GetRootSignature(
range.RangeType = D3D12_DESCRIPTOR_RANGE_TYPE_SRV;
range.NumDescriptors = 1;
range.BaseShaderRegister = 0;
range.RegisterSpace = 1;
range.RegisterSpace = 0;
range.OffsetInDescriptorsFromTableStart = 0;
}
@@ -277,7 +277,7 @@ ID3D12RootSignature* D3D12CommandProcessor::GetRootSignature(
parameter.ShaderVisibility = D3D12_SHADER_VISIBILITY_VERTEX;
range.RangeType = D3D12_DESCRIPTOR_RANGE_TYPE_SRV;
range.NumDescriptors = vertex_texture_count;
range.BaseShaderRegister = 0;
range.BaseShaderRegister = 1;
range.RegisterSpace = 0;
range.OffsetInDescriptorsFromTableStart = 0;
++desc.NumParameters;