Improve the quality of texture sample in Direct3D
问题 I'm using directx 11 to render video.I create a Texture2D and copy rgba video data into it.Also it is the resource of pixel shader.Here is code: void CreateTexture(int nWidth, int nHeight) { D3D11_TEXTURE2D_DESC textureDesc; textureDesc.Width = nWidth;//Video width textureDesc.Height = nHeight;//Video height textureDesc.MipLevels = 1; textureDesc.ArraySize = 1; textureDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; textureDesc.SampleDesc.Count = 1; textureDesc.Usage = D3D11_USAGE_DYNAMIC;