MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / SaveTextureAsEXR

Function SaveTextureAsEXR

SampleFramework11/v1.02/Graphics/Textures.cpp:254–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254void SaveTextureAsEXR(ID3D11ShaderResourceView* srv, const wchar* filePath)
255{
256 ID3D11DevicePtr device;
257 srv->GetDevice(&device);
258
259 TextureData<Float4> textureData;
260 GetTextureData(device, srv, textureData);
261
262 SaveTextureAsEXR(textureData, filePath);
263}
264
265void SaveTextureAsEXR(const TextureData<Float4>& texture, const wchar* filePath)
266{

Callers 1

SaveEXRScreenshotFunction · 0.85

Calls 8

GetTextureDataFunction · 0.85
WStringToAnsiFunction · 0.85
SaveMultiChannelEXRFunction · 0.85
ExceptionClass · 0.85
AnsiToWStringFunction · 0.85
sizeMethod · 0.45
resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected