Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Compile error in 4.15.0 #44

Open
luochuanyuewu opened this issue Feb 17, 2017 · 1 comment
Open

Compile error in 4.15.0 #44

luochuanyuewu opened this issue Feb 17, 2017 · 1 comment

Comments

@luochuanyuewu
Copy link

When i compile this plugin in ue 4.15.0, i got following error.
'RHICmdList': is not a member of 'FRHICommandListImmediate'
'Clear': is not a member of 'FRHICommandListImmediate'

Seems like the function "RHICmdList.Clear()" has no longer existed in 4.15 version of UE.
But i didn't find a alternative to this function, so i just commented it.(after doing this, it works)

@noslopforever
Copy link

Hi. I have the same issue.

My solution is to change these lines:

SetRenderTarget(RHICmdList, TextureRenderTarget->GetRenderTargetTexture(), NULL);
RHICmdList.Clear(true, FLinearColor::Transparent, false, 0.f, false, 0, FIntRect());

to:

FRHIRenderTargetView ColorView(TextureRenderTarget->GetRenderTargetTexture(), 0, -1, ERenderTargetLoadAction::EClear, ERenderTargetStoreAction::EStore);
FRHIDepthRenderTargetView DepthView(NULL, ERenderTargetLoadAction::ENoAction, ERenderTargetStoreAction::ENoAction, FExclusiveDepthStencil::DepthRead_StencilWrite);
FRHISetRenderTargetsInfo RenderTargetsInfo(1, &ColorView, DepthView);
RHICmdList.SetRenderTargetsAndClear(RenderTargetsInfo);

It works, but maybe is not the perfect way.

Good luck!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants