[D3D12] Put shared memory in PS resource state because vfetch seems allowed in PS
This commit is contained in:
@@ -538,8 +538,10 @@ void SharedMemory::TransitionBuffer(D3D12_RESOURCE_STATES new_state) {
|
||||
}
|
||||
|
||||
void SharedMemory::UseForReading() {
|
||||
// Vertex fetch also seems to be allowed in pixel shaders.
|
||||
TransitionBuffer(D3D12_RESOURCE_STATE_INDEX_BUFFER |
|
||||
D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE);
|
||||
D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE |
|
||||
D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE);
|
||||
}
|
||||
|
||||
void SharedMemory::UseForWriting() {
|
||||
|
||||
Reference in New Issue
Block a user