Hi, I am trying to use Video Codec SDK 9.1 with DirectX 12, but so far I haven’t been able to initialize the encode session.
This is my code:
NV_ENC_OPEN_ENCODE_SESSION_EX_PARAMS params = { 0 };
params.version = NV_ENC_OPEN_ENCODE_SESSION_EX_PARAMS_VER;
params.device = my_d3d12_device;
params.deviceType = NV_ENC_DEVICE_TYPE_DIRECTX;
params.apiVersion = NVENCAPI_VERSION;
result = encodeAPI->nvEncOpenEncodeSessionEx(¶ms, &pEncoderInterface);
Looking at the docs, I couldn’t find anything that points that DirectX 12, so maybe it’s not supported ?