Sign in to follow this  

[solved][dx10] CreateTexture2D( ) failure on Vista, 8800GTX?

This topic is 3875 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I never thought it was so strict that even if i missed "descTex.MiscFlags = 0; " it will fail. I thought there's a defalt, but I'm wrong:) bow. Hi, below is my create tex code, the last line causes INVALIDARG failure. Could it be my 8800GTX card and Vista doesn't support? Anyone has Vista and 8800 and tell me? thx. ps. DirectX Caps Viewer is unable to check DXGI_FMT, only D3DFMT. Isn't DirectX April 2007 the latest sdk? My graphics driver is also the newest. But I think Vista doesn't need sdk at all, it already supports dx10 in a whole, since dx10 caps are "all or none". So is that I still installed dx9 april2007 which destroys the dx10 support of Vista?.. ps.D3DX10CreateEffectFromFile works well; D3D10_INPUT_ELEMENT_DESC layout[] = { { "POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D10_INPUT_PER_VERTEX_DATA, 0 }, { "TEXCOORD", 0, DXGI_FORMAT_R32G32_FLOAT, 0, 12, D3D10_INPUT_PER_VERTEX_DATA, 0 }, }; also works well.
	descTex.Width = texW;
	descTex.Height = texRH;
	descTex.MipLevels = 1;
	descTex.ArraySize = 1;
	descTex.Format = DXGI_FORMAT_R32G32B32_UINT;
	descTex.SampleDesc.Count = 1;
	descTex.Usage = D3D10_USAGE_DYNAMIC;
	descTex.BindFlags = D3D10_BIND_SHADER_RESOURCE;
	descTex.CPUAccessFlags = D3D10_CPU_ACCESS_WRITE;
	V(g_pd3dDevice->CreateTexture2D(&descTex, NULL, &pTexR));
[Edited by - yk_cadcg on May 10, 2007 7:51:50 PM]

Share this post


Link to post
Share on other sites

This topic is 3875 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this