X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=retrace%2Fdxgistate.hpp;h=eb3a6fecbac6201fb7c49cf52cf8e84cc2fba9dd;hb=d6b7eb6b7c8280762fb635a6e63aa3a426694ed7;hp=f633373fd4fa773852cddd9bc810d5dbfc211acc;hpb=c8695f74ce1ee6a93dee4b3f7da5a70a64706c82;p=apitrace diff --git a/retrace/dxgistate.hpp b/retrace/dxgistate.hpp index f633373..eb3a6fe 100644 --- a/retrace/dxgistate.hpp +++ b/retrace/dxgistate.hpp @@ -34,6 +34,16 @@ #include +#ifndef ARRAYSIZE +#define ARRAYSIZE(_x) (sizeof(_x)/sizeof((_x)[0])) +#endif + + +namespace image { + class Image; +} + + namespace d3dstate { @@ -46,6 +56,12 @@ ConvertFormat(DXGI_FORMAT SrcFormat, UINT DstPitch, UINT Width, UINT Height); +image::Image * +ConvertImage(DXGI_FORMAT SrcFormat, + void *SrcData, + UINT SrcPitch, + UINT Width, UINT Height); + } /* namespace d3dstate */