<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>ALLEGRO_PROGRAMMABLE_PIPELINE Question</title>
		<link>http://www.allegro.cc/forums/view/618460</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 01 Aug 2021 23:35:58 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>So, I&#39;m trying to fully understand this. I finally figure out how to get shaders working under DirectX with the ALLEGRO_PROGRAMMABLE_PIPELINE flag. This is what I&#39;m currently using:</p><p>ALLEGRO_DIRECT3D | ALLEGRO_RESIZABLE | ALLEGRO_PROGRAMMABLE_PIPELINE</p><p>I can enable compile and use shaders with DirectX. So now I&#39;m working on my next example where I have a white bitmap, and I color then at runtime using a random color. But now, they are all just white. If I remove ALLEGRO_PROGRAMMABLE_PIPELINE, then they color as expected. Now I read in the docs that Allegro drawing routines don&#39;t work when ALLEGRO_PROGRAMMABLE_PIPELINE is enabled? What does this mean, I can draw the sprites, fonts, etc., just cannot seem to apply color. </p><p>So in this case, how would I go about drawing this white bitmap with different colors at runtime when ALLEGRO_PROGRAMMABLE_PIPELINE is enabled? Do I really have to make a shader just for this? I&#39;m new to shaders, thoughts, ideas? Much appreciated.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (tinyBigGAMES)</author>
		<pubDate>Sat, 17 Jul 2021 07:54:04 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Have you looked at shader_source.inc in the Allegro src directory? <span class="ref"><sup>[<a href="#">1</a>]</sup></span></p><p>This is the default shader that is used with ALLEGRO_PROGRAMMABLE_PIPELINE enabled.</p><p>Also see the notes for al_get_default_shader_source() where it describes the uniforms that are passed to the shader when using ALLEGRO_PROGRAMMABLE_PIPELINE. <span class="ref"><sup>[<a href="#">2</a>]</sup></span></p><p>I&#39;m not sure where the documentation gave you the impression that drawing routines don&#39;t work with ALLEGRO_PROGRAMMABLE_PIPELINE.  That is incorrect.
</p><div class="ref-block"><h2>References</h2><ol><li><a href="https://github.com/liballeg/allegro5/blob/master/src/shader_source.inc">https://github.com/liballeg/allegro5/blob/master/src/shader_source.inc</a></li><li><a href="https://liballeg.org/a5docs/trunk/shader.html#al_attach_shader_source">https://liballeg.org/a5docs/trunk/shader.html#al_attach_shader_source</a></li></ol></div></div>]]>
		</description>
		<author>no-reply@allegro.cc (check_switch_26)</author>
		<pubDate>Tue, 20 Jul 2021 22:13:49 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thanks
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (tinyBigGAMES)</author>
		<pubDate>Tue, 20 Jul 2021 22:46:00 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Can someone write a wiki artical on using shaders and ALLEGRO_PROGRAMMABLE_PIPELINE? That would be really helpful.</p><p><a href="https://github.com/liballeg/allegro_wiki">https://github.com/liballeg/allegro_wiki</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Sun, 01 Aug 2021 23:35:58 +0000</pubDate>
	</item>
</rss>
