Results 1 to 2 of 2

Thread: D3DVS_VERSION

  1. #1

    D3DVS_VERSION

    For all the calls of ConfirmDevice, how to "trash" the REF driver modes?

    Thanks

  2. #2

    D3DVS_VERSION

    For example:
    [pascal]function CMyD3DApplication.ConfirmDevice(const pCaps: TD3DCaps9; dwBehavior: DWORD;
    adapterFormat, backBufferFormat: TD3DFormat): HRESULT;
    begin
    Result:= E_FAIL;

    // Minimum PS_2_0 are required
    if (pCaps.PixelShaderVersion < D3DPS_VERSION(2,0)) then Exit;

    if (pCaps.DeviceType = D3DDEVTYPE_REF) then Exit; // !!!!!

    // We request software vertex processing to unify TextureTransform between different architectures...
    if ((dwBehavior and D3DCREATE_SOFTWARE_VERTEXPROCESSING) <> D3DCREATE_SOFTWARE_VERTEXPROCESSING)
    then Exit;

    Result:= S_OK;
    end;
    [/pascal]
    There are only 10 types of people in this world; those who understand binary and those who don't.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •