Original Post
I just want to know if I have the right understanding of this function, or if I misunderstood the whole thing.
The function CheckDeviceFormat() is used to check whether a surface format is available as a specified resource type. For instance this call would check whether the format D3DFMT_R5G6B5 can be used as a texture format. Am I right?
CheckDeviceFormat(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, D3DFMT_R5G6B5, D3DUSAGE_RENDERTARGET, D3DRTYPE_TEXTURE, D3DFMT_R5G6B5);But I don''t fully understand why the third parameter is needed? What does it tell the function? Thanks in advance René