XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

Strange Create Device Flags Issue

Last post 22/08/2007 15:46 by slugonamission. 2 replies.
  • 22/08/2007 14:22

    Strange Create Device Flags Issue

    I have the standard creation code for a device and swap chain. For some reason, if I don't initialize the dwCreateFlags variable (the same as what holds the debug device flag, which is bitwise ORed onto dwCreateFlags), I get this message in the output window. The value of dwCreateFlags then is 3435973838. I know this is just the way C++ does things BTW.

    D3D10: ERROR: ID3D10Device::CreateTexture2D: The Sample descriptor is invalid for a D3D10.0 level driver. DXGI_SAMPLE_DESC::Count (value = 1) must be between 1 and 32, inclusively. For 1 samples, the current graphics implementation only supports DXGI_SAMPLE_DESC::Quality (value = 0) less than 0. <-- if 0 is shown here for Quality, this means the graphics implementation doesn't support this number of samples. Use CheckMultisampleQualityLevels to detect what the graphics implementation supports. [ STATE_CREATION ERROR #93: CREATETEXTURE2D_INVALIDSAMPLES ]

    Why do I only get this message when I make the mistake of not initializing dwCreateFlags? It looks remotely like debug info, which surely should be shown with just D3D10_CREATE_DEVICE_DEBUG?

    My code for starting D3D is pretty much identical to Tutorial 01 BTW.

    Cheers ~ Slug
  • 22/08/2007 15:09 In reply to

    Re: Strange Create Device Flags Issue

    Answer
    Reply Quote

    The unutilized create flag value enable the “switch to ref” layer. From what I have seen it has an error in the CheckMultisampleQualityLevels implementation. As the debug runtime use this function to check if the requested sample count is supported for the back buffer format you get this error message.

  • 22/08/2007 15:46 In reply to

    Re: Strange Create Device Flags Issue

    Aha, that explains it, thanks :)
Page 1 of 1 (3 items) Previous Next