Skip to content

Renderer ConvertToSRGB not working #151

Open
@YupCore

Description

@YupCore

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions