MCPcopy Create free account
hub / github.com/Atarity/Lightpack / getCompatibleBufferFormat

Function getCompatibleBufferFormat

Software/hooks/D3D9FrameGrabber.cpp:347–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347BufferFormat getCompatibleBufferFormat(D3DFORMAT format) {
348 switch(format) {
349 case D3DFMT_A8B8G8R8:
350 return BufferFormatAbgr;
351 case D3DFMT_X8B8G8R8:
352 return BufferFormatAbgr;
353 case D3DFMT_R8G8_B8G8:
354 return BufferFormatRgbg;
355 case D3DFMT_A8R8G8B8:
356 return BufferFormatArgb;
357 case D3DFMT_X8R8G8B8:
358 return BufferFormatArgb;
359 default:
360 return BufferFormatArgb;
361 }
362}

Callers 2

D3D9PresentFunction · 0.85
D3D9SCPresentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected