<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Shader Support Version</title>
		<link>http://www.allegro.cc/forums/view/618405</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Fri, 30 Apr 2021 10:46:47 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hello,</p><p>i&#39;m trying to use a Shader (HLSL), but i get the following error messages</p><p>al_attach_shader_source_file failed: error X3543: asuint cannot be used on ps_2_0<br />error X3535: Bitwise operations not supported on legacy targets.<br />ID3DXEffectCompiler::CompileEffect: There was an error compiling expression<br />ID3DXEffectCompiler: Compilation failed</p><p>I managed to get it running without the function asuint and bitwise operations.</p><p>Where can i specify that i want to use Shader Version 3.0 or higher? Is it supported?</p><p>Edit: I just looked at the history of Shaders. Version 4.0 was introduced with Geforce 8 about 14 Years ago, so i think it&#39;s safe to assume it is available on PC <img src="http://www.allegro.cc/forums/smileys/cheesy.gif" alt=":D" /></p><p>Thanks!</p><p>Best regards
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (JaykopX)</author>
		<pubDate>Wed, 28 Apr 2021 20:13:12 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>SiegeLord posted a reply to me about this, you&#39;ll need to recompile Allegro with a patch (I just used GLSL instead):</p><p><a href="https://www.allegro.cc/forums/thread/618307">HLSL Shaders Post</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Dizzy Egg)</author>
		<pubDate>Thu, 29 Apr 2021 00:13:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thanks for the information. I never compiled Allegro myself, i may look into it. I also tried to use GLSL instead, but it crashes with a nullpointer exception if i call al_attach_shader_source_file</p><p>I changed<br />  ALLEGRO_SHADER_PLATFORM platform = al_get_shader_platform(shader);<br />to<br />  ALLEGRO_SHADER_PLATFORM platform = ALLEGRO_SHADER_GLSL;</p><p>and</p><p>  shader = al_create_shader(ALLEGRO_SHADER_AUTO);<br />to<br />  shader = al_create_shader(ALLEGRO_SHADER_GLSL);</p><p>and i used the files from the example</p><p>    *vsource = &quot;data/ex_shader_vertex.glsl&quot;;<br />    *psource = &quot;data/ex_shader_pixel.glsl&quot;;</p><p>Did i miss something?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (JaykopX)</author>
		<pubDate>Thu, 29 Apr 2021 14:00:44 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Are you setting the display to opengl? </p><p><span class="source-code"><a href="http://www.allegro.cc/manual/al_set_new_display_flags"><span class="a">al_set_new_display_flags</span></a><span class="k2">(</span>ALLEGRO_OPENGL<span class="k2">)</span><span class="k2">;</span></span>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Dizzy Egg)</author>
		<pubDate>Thu, 29 Apr 2021 14:59:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Missed that, thank you! Now it&#39;s working (kinda, it&#39;s flickering, but if think i can figure that out)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (JaykopX)</author>
		<pubDate>Fri, 30 Apr 2021 10:46:47 +0000</pubDate>
	</item>
</rss>
