<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Throwing an exception from within an IntersectFilterFunction in Intel® Embree Ray Tracing Kernels</title>
    <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Throwing-an-exception-from-within-an-IntersectFilterFunction/m-p/1385061#M941</link>
    <description>&lt;P&gt;Hi Embree People&lt;BR /&gt;&lt;BR /&gt;I'm currently working on a demand-loading system for our renderer.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;The main concept is... &lt;BR /&gt;- throw an exception when a missing resource (eg texture) is encountered by the shader&lt;BR /&gt;- catch the exception outside of the rtcIntersect() call&lt;BR /&gt;- load the resource&lt;BR /&gt;- continue with rendering.&lt;BR /&gt;&lt;BR /&gt;Two issues/questions&lt;BR /&gt;&lt;BR /&gt;1)&lt;BR /&gt;I'm finding that Embree is automatically catching my exception itself, and reporting it as an "unknown exception caught" error.&lt;BR /&gt;&lt;BR /&gt;For now I'm going to ignore "unknown exception caught" errors as reported by Embree, mark a flag somewhere, and continue on.&amp;nbsp; But perhaps the Embree team might want to support user exceptions someday?&amp;nbsp; Perhaps we could throw an exception derived from some "UserExecption" class, in which Embree would not report an error, and rethrow.&lt;BR /&gt;&lt;BR /&gt;2)&lt;BR /&gt;Given my idea to ignore "unknown exception caught" errors...&lt;BR /&gt;Is it generally "safe" to throw an exception from an&amp;nbsp;IntersectFilterFunction?&lt;BR /&gt;What about an Intersect function?&lt;BR /&gt;&lt;BR /&gt;thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2022 00:08:43 GMT</pubDate>
    <dc:creator>Sharpe__Brian</dc:creator>
    <dc:date>2022-05-18T00:08:43Z</dc:date>
    <item>
      <title>Throwing an exception from within an IntersectFilterFunction</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Throwing-an-exception-from-within-an-IntersectFilterFunction/m-p/1385061#M941</link>
      <description>&lt;P&gt;Hi Embree People&lt;BR /&gt;&lt;BR /&gt;I'm currently working on a demand-loading system for our renderer.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;The main concept is... &lt;BR /&gt;- throw an exception when a missing resource (eg texture) is encountered by the shader&lt;BR /&gt;- catch the exception outside of the rtcIntersect() call&lt;BR /&gt;- load the resource&lt;BR /&gt;- continue with rendering.&lt;BR /&gt;&lt;BR /&gt;Two issues/questions&lt;BR /&gt;&lt;BR /&gt;1)&lt;BR /&gt;I'm finding that Embree is automatically catching my exception itself, and reporting it as an "unknown exception caught" error.&lt;BR /&gt;&lt;BR /&gt;For now I'm going to ignore "unknown exception caught" errors as reported by Embree, mark a flag somewhere, and continue on.&amp;nbsp; But perhaps the Embree team might want to support user exceptions someday?&amp;nbsp; Perhaps we could throw an exception derived from some "UserExecption" class, in which Embree would not report an error, and rethrow.&lt;BR /&gt;&lt;BR /&gt;2)&lt;BR /&gt;Given my idea to ignore "unknown exception caught" errors...&lt;BR /&gt;Is it generally "safe" to throw an exception from an&amp;nbsp;IntersectFilterFunction?&lt;BR /&gt;What about an Intersect function?&lt;BR /&gt;&lt;BR /&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 00:08:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Throwing-an-exception-from-within-an-IntersectFilterFunction/m-p/1385061#M941</guid>
      <dc:creator>Sharpe__Brian</dc:creator>
      <dc:date>2022-05-18T00:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Throwing an exception from within an IntersectFilterFunction</title>
      <link>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Throwing-an-exception-from-within-an-IntersectFilterFunction/m-p/1385571#M942</link>
      <description>&lt;P&gt;I've decided to go with a different approach for demand loading.&lt;/P&gt;
&lt;P&gt;Instead, I now load the resources on the inner loop (rather than throwing an exception and loading later), so we can cancel this question.&lt;BR /&gt;&lt;BR /&gt;Thanks anyway.&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 10:09:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Embree-Ray-Tracing-Kernels/Throwing-an-exception-from-within-an-IntersectFilterFunction/m-p/1385571#M942</guid>
      <dc:creator>Sharpe__Brian</dc:creator>
      <dc:date>2022-05-19T10:09:32Z</dc:date>
    </item>
  </channel>
</rss>

