Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renderer ConvertToSRGB not working #151

Open
YupCore opened this issue Apr 13, 2021 · 0 comments
Open

Renderer ConvertToSRGB not working #151

YupCore opened this issue Apr 13, 2021 · 0 comments

Comments

@YupCore
Copy link

YupCore commented Apr 13, 2021

if (bConverToSRGB) { // convert the source image into srgb to store on disk D3D11_TEXTURE2D_DESC texDesc = {}; tex._tex2D->GetDesc(&texDesc); if (!SUCCEEDED(DirectX::Convert( *imgOut , DXGI_FORMAT_R8G8B8A8_UNORM_SRGB , 0 , 0.0f , *imgOutSRGB ))) { assert(false); } }
here's code, and when i compile it this error shows up "E0304 There are no instances of the "DirectX::Convert" overloaded function matching the argument list
Renderer G:\GameEngines\VQEngine-dev\Source\Renderer\Source\Renderer.cpp 1125"(maybe it is misspelled because i translated error text in google translator)

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

No branches or pull requests

1 participant