Jump to content
  • Advertisement
Sign in to follow this  

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

This topic is 4086 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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!