   [DX10] Map() for dynamic texture returns E_INVALIDARG ??
  Hey all,Im trying to do a simply Map() on a dx10 dynamic texture and it keeps giving me E_INVALIDARG as the return value.Here is the desc im using to create the texture:width,height = 1024 x 768levels = 1mipmaps = 1multisample count = 1multisample quality = 0format = rgba8 unormusage = dynamicbind flags = shader_resourcecpu access = writeno initial datafor the actual Map() call:for maptype parameter im using writefor mapflags parameter im using 0Is there some restriction on what types of dynamic textures can be locked?Also, im sure that its not already locked...[Edited by - coderchris on May 12, 2009 12:16:53 AM]
  I am not exactly sure about this, but don't you need to use discard or no overwrite with dynamic resources? Anyways, what does the debugger say?   ;  Yep, tried it just now, debug says you need to use MAP_WRITE_DISCARD or MAP_WRITE_NO_OVERWRITE on dynamics. Simple MAP_WRITE is for staging only AFAIK.   ;  Ah, thanks a bunch that fixed it.But, where is this debugger and how do I use it? :p   ;  Adding D3D10_CREATE_DEVICE_DEBUG to the device creation flags should produce debug messages on the Output.   