<?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 glNamedFramebufferTextureLayer rejects cubemaps of any kind in Graphics</title>
    <link>https://community.intel.com/t5/Graphics/glNamedFramebufferTextureLayer-rejects-cubemaps-of-any-kind/m-p/1167643#M87830</link>
    <description>&lt;P&gt;System Used: N/A&lt;BR /&gt;CPU SKU: i5-8265U&lt;BR /&gt;GPU SKU: UHD 620&lt;BR /&gt;System BIOS Version: N/A&lt;BR /&gt;CMOS settings: N/A&lt;BR /&gt;Graphics Driver Version: 25.20.100.6444&lt;BR /&gt;GOP/VBIOS Version: 9.0.1080&lt;BR /&gt;Operating System: Win10 Home&lt;BR /&gt;OS Version: 10.0.19603&lt;BR /&gt;API: OpenGL 4.5&lt;BR /&gt;Occurs on non-Intel GPUs?: does not occur on NVIDIA GPUs, AMD not tested&lt;/P&gt;&lt;P&gt;Steps to Reproduce:&lt;BR /&gt;-------------------------------&lt;BR /&gt;1. Create an OpenGL 4.5 context.&lt;BR /&gt;2. Create a framebuffer and try to bind a cube map face to a color attachment&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark; wrap-lines:false;"&gt;GLuint cubeTex;
glCreateTextures(GL_TEXTURE_CUBE_MAP, 1, &amp;amp;cubeTex);
glTextureStorage2D(cubeTex, 1, GL_RGBA16F, 1024, 1024);

GLuint fb;
glCreateFramebuffers(1, &amp;amp;fb);

glNamedFramebufferTextureLayer(fb, GL_COLOR_ATTACHMENT0, cubeTex, 0, 4);
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected Results:&lt;BR /&gt;-------------------------------&lt;/P&gt;
&lt;P&gt;According to the OpenGL 4.5 Spec, no error should be thrown and the operation should be successful&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actual Results:&lt;BR /&gt;-------------------------------&lt;/P&gt;
&lt;P&gt;With a debug context, the following error is thrown and any drawing operation with the Framebuffer bound will not do anything.&lt;/P&gt;

&lt;PRE class="brush:; class-name:dark;"&gt;Error has been generated. GL error GL_INVALID_OPERATION in NamedFramebufferTextureLayer: (ID: 3072786610) Generic error&lt;/PRE&gt;

&lt;P&gt;The error is generated by the call to glNamedFramebufferTextureLayer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additional Information:&lt;BR /&gt;-------------------------------&lt;/P&gt;
&lt;P&gt;On any NVIDIA card I have tested, no error or warning is generated&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2020 18:26:50 GMT</pubDate>
    <dc:creator>Quint__Robin</dc:creator>
    <dc:date>2020-04-21T18:26:50Z</dc:date>
    <item>
      <title>glNamedFramebufferTextureLayer rejects cubemaps of any kind</title>
      <link>https://community.intel.com/t5/Graphics/glNamedFramebufferTextureLayer-rejects-cubemaps-of-any-kind/m-p/1167643#M87830</link>
      <description>&lt;P&gt;System Used: N/A&lt;BR /&gt;CPU SKU: i5-8265U&lt;BR /&gt;GPU SKU: UHD 620&lt;BR /&gt;System BIOS Version: N/A&lt;BR /&gt;CMOS settings: N/A&lt;BR /&gt;Graphics Driver Version: 25.20.100.6444&lt;BR /&gt;GOP/VBIOS Version: 9.0.1080&lt;BR /&gt;Operating System: Win10 Home&lt;BR /&gt;OS Version: 10.0.19603&lt;BR /&gt;API: OpenGL 4.5&lt;BR /&gt;Occurs on non-Intel GPUs?: does not occur on NVIDIA GPUs, AMD not tested&lt;/P&gt;&lt;P&gt;Steps to Reproduce:&lt;BR /&gt;-------------------------------&lt;BR /&gt;1. Create an OpenGL 4.5 context.&lt;BR /&gt;2. Create a framebuffer and try to bind a cube map face to a color attachment&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;PRE class="brush:cpp; class-name:dark; wrap-lines:false;"&gt;GLuint cubeTex;
glCreateTextures(GL_TEXTURE_CUBE_MAP, 1, &amp;amp;cubeTex);
glTextureStorage2D(cubeTex, 1, GL_RGBA16F, 1024, 1024);

GLuint fb;
glCreateFramebuffers(1, &amp;amp;fb);

glNamedFramebufferTextureLayer(fb, GL_COLOR_ATTACHMENT0, cubeTex, 0, 4);
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected Results:&lt;BR /&gt;-------------------------------&lt;/P&gt;
&lt;P&gt;According to the OpenGL 4.5 Spec, no error should be thrown and the operation should be successful&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actual Results:&lt;BR /&gt;-------------------------------&lt;/P&gt;
&lt;P&gt;With a debug context, the following error is thrown and any drawing operation with the Framebuffer bound will not do anything.&lt;/P&gt;

&lt;PRE class="brush:; class-name:dark;"&gt;Error has been generated. GL error GL_INVALID_OPERATION in NamedFramebufferTextureLayer: (ID: 3072786610) Generic error&lt;/PRE&gt;

&lt;P&gt;The error is generated by the call to glNamedFramebufferTextureLayer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additional Information:&lt;BR /&gt;-------------------------------&lt;/P&gt;
&lt;P&gt;On any NVIDIA card I have tested, no error or warning is generated&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 18:26:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/glNamedFramebufferTextureLayer-rejects-cubemaps-of-any-kind/m-p/1167643#M87830</guid>
      <dc:creator>Quint__Robin</dc:creator>
      <dc:date>2020-04-21T18:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: glNamedFramebufferTextureLayer rejects cubemaps of any kind</title>
      <link>https://community.intel.com/t5/Graphics/glNamedFramebufferTextureLayer-rejects-cubemaps-of-any-kind/m-p/1337935#M103221</link>
      <description>&lt;P&gt;I'm having the exact same error on my UHD 620 card with OpenGL 4.6 context, and no error is generated on my AMD card.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Nov 2021 23:52:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Graphics/glNamedFramebufferTextureLayer-rejects-cubemaps-of-any-kind/m-p/1337935#M103221</guid>
      <dc:creator>neo-mashiro</dc:creator>
      <dc:date>2021-11-20T23:52:41Z</dc:date>
    </item>
  </channel>
</rss>

