D3DX: Set HKLM\Software\Microsoft\Direct3D\D3DXBreakOnAllocId=0xb60cb to debug とあるので、レジスタの HKEY_LOCAL_MACHINE\Software\Microsoft\Direct3D\D3DXBreakOnAllocIdに0xb60cbをセットしてみました。 (HKLMってHKEY_LOCAL_MACHINEの略だったんですね。ったく分かりづらい。。。)
int size_x = 256; int size_y = 256; for ( int y = 0; y < 3000; y += size_y ) { for ( int x = 0; x < 3000; x += size_x ) { pTex[y/size_y][x/size_x] = テクスチャ作成( size_x, size_y );
int Sx = 3000 - (x * size_x); int Sy = 3000 - (y * size_y); if ( Sx > size_x ) Sx = size_x; if ( Sy > size_y ) Sy = size_y;
RECT Dst = { 0, 0, Sx, Sy }; RECT Src = { x, y, x+Sx, y+Sy }; D3DXLoadSurfaceFromFileInMemory( 色々, &Src, &Dst) } }
Width [in] Width in pixels. If this value is zero or D3DX_DEFAULT, the dimensions are taken from the file and rounded up to a power of two. If the device supports non-power of 2 textures and D3DX_DEFAULT_NONPOW2 is specified, the size will not be rounded.