HRESULT tBufferResult = pDevice->CreateTexture2D(&tBufferDesc, NULL, &tBuffer) ![]() TBufferDesc.MiscFlags =ĝ3D10_RESOURCE_MISC_GENERATE_MIPS TBufferDesc.CPUAccessFlags = D3D10_CPU_ACCESS_READ TBufferDesc.BindFlags =ĝ3D10_BIND_SHADER_RESOURCE | D3D10_BIND_RENDER_TARGET TBufferDesc.Format =ĝXGI_FORMAT_R8G8B8A8_UINT However, when I try to create the texture, it tells me I'm passing an invalid parameter (See error handling below), and I can't quite figure out what I'm missing here.įor those who know, it should be quick to spot. ![]() ![]() ![]() I'm trying to create a texture for screen capture so I can grab the 1x1 mipmap to get the average color of the screen.
0 Comments
Leave a Reply. |