internal void CheckError(RTPresult result) { if (result != RTPresult.RTP_SUCCESS) { PrimeApi.rtpGetErrorString(result, out var message); throw new OptixException($"Optix context error : {message}"); } }
internal new void CheckError(RTPresult result) { if (result != RTPresult.RTP_SUCCESS) { PrimeApi.rtpGetErrorString(result, out var Errormessage); throw new OptixException($"Optix context error : {Marshal.PtrToStringAnsi(Errormessage)}"); } }