<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Can I write to a SSBO from a fragment shader?</title><link>https://community.arm.com/developer/tools-software/graphics/f/discussions/48033/can-i-write-to-a-ssbo-from-a-fragment-shader</link><description> I am not able to write to a SSBO from a fragment shader even though it seems to be bound properly to the opengl context. 
 Is there anything to take into acount to be able to write to a SSBO from a fragment shader? 
 According to Graphycs Analyzer the</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Can I write to a SSBO from a fragment shader?</title><link>https://community.arm.com/thread/168707?ContentTypeID=1</link><pubDate>Wed, 18 Nov 2020 17:41:05 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9e2f418c-1814-41e2-9143-9f5456557f86</guid><dc:creator>Ben Clark</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You should be able to write to an SSBO in the fragment shader.&lt;/p&gt;
&lt;p&gt;It does disable some optimizations, and you&amp;#39;ll need to be careful with your memory barriers, but if done correctly, it should work.&amp;nbsp; There are multiple stackoverflow / reddit / khronos community questions that may have suggestions for where you&amp;#39;re stuck. If not, please come back with more detail on shader implementation and device you&amp;#39;re testing on, so we can see where the problem is.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I write to a SSBO from a fragment shader?</title><link>https://community.arm.com/thread/168605?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2020 17:14:12 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a66caa87-c15d-486f-897a-382d464f9023</guid><dc:creator>Jesus</dc:creator><description>&lt;p&gt;I found this that seems to indicate that SSBOs can only be written from compute shaders:&amp;nbsp;&lt;a href="https://developer.arm.com/documentation/100587/0100/compute-shaders/differences-between-compute-shaders--vertex-and-fragment-shaders/vertex-and-fragment-shaders-features?lang=en"&gt;https://developer.arm.com/documentation/100587/0100/compute-shaders/differences-between-compute-shaders--vertex-and-fragment-shaders/vertex-and-fragment-shaders-features?lang=en&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, it feels weird to me that I am not getting any shader compile / linker error, but instead I get some undefined behaviour when trying to write to a SSBO from a fragment shader, if that is the intended behaviour.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>