sideeffects / HoudiniNiagara

Houdini Data Interface for UE4 Niagara
Other
320 stars 62 forks source link

Resources bound with UAVCompute instead of SRVCompute #57

Open ms-dne opened 2 months ago

ms-dne commented 2 months ago

With -rhivalidation we got resource transition validation errors in the Houdini NDI:

Attempted to access resource "HoudiniGPUBufferFloat" (Whole Resource) from a hardware unit it is not currently accessible from. A resource transition is required.

--- Allowed access states for this resource are: UAVCompute --- Required access states are: SRVCompute --- Allowed pipelines for this resource are: Graphics --- Required pipelines are: Graphics

There seems to be missing ERHIAccess::SRVCompute arguments in the FRWBuffer.Initialize() functions in:

By default the FRWBuffer::Initialize() function sets the ERHIAccess::UAVCompute flag. The Initialize function that lets you specify the resource state (in the second to last argument) should probably be used instead (with ERHIAccess::SRVCompute).