Giovanni Mascellani (@giomasce) commented about tests/shader_runner.c:
- if (FAILED(hr = IDxcCompiler3_Compile(compiler, &src_buf, args, ARRAY_SIZE(args), NULL, &IID_IDxcResult, (void **)&result)))
- {
trace("Failed to compile shader, hr %#x.\n", hr);
return hr;
- }
- if (IDxcResult_HasOutput(result, DXC_OUT_ERRORS)
&& SUCCEEDED(hr = IDxcResult_GetOutput(result, DXC_OUT_ERRORS, &IID_IDxcBlobUtf8, (void **)&errors, NULL)))
- {
if (IDxcBlobUtf8_GetStringLength(errors))
d3d10_blob_from_dxc_blob_utf8(errors, errors_out);
IDxcBlobUtf8_Release(errors);
- }
- if (FAILED(hr = IDxcOperationResult_GetStatus((IDxcOperationResult *)result, &compile_hr))
You can use `IDxcResult_GetStatus(result, ...)`.