RE: [fog-dev] Shader Progress

10 views
Skip to first unread message

Mike Tajmajer

unread,
Oct 29, 2010, 6:38:10 PM10/29/10
to fog...@googlegroups.com
Hi Petr,

I was reading about HLSL, and it is the same as Cg according to one FAQ I
read!

http://www.fusionindustries.com/default.asp?page=cg-hlsl-faq

-------------------------------------------------
1. The Cg/HLSL Language
-------------------------------------------------
1.1: What's the difference between nVidia's Cg and Microsoft's HLSL
(High Level Shading Language)?

A: Cg and HLSL are actually the same language! Cg/HLSL was co-developed
by nVidia and Microsoft. They have different names for branding
purposes. HLSL is part of Microsoft's DirectX API and only compiles
into DirectX code, while Cg can compile to DirectX and OpenGL.

In this FAQ, Cg and HLSL can be used interchangeably.

> Hi Mike,
>
> nice to see that you are doing some progress. I'm now working mainly on
> Fog-Graphics part, some things need to be done before shader architecture
> will be enabled/used.
>
> I studied the language for directx (hlsl
> http://msdn.microsoft.com/en-us/library/bb509615%28v=VS.85%29.aspx)
> and for me it looks great. I'm still not sure if we want to support all
> functionality offered by opengl/cg, because we are restricted to 2d
graphics
> only (no 4x4 matrix, no vertex shading). What are your exact plans?
>
> I think that that shaders should enable to write compositing or pattern
> fetching functions, true?
>
> BTW: I'm civ fan too, but I played mainly civ2. Other series not impressed
me;
> although Civ5 looks really great;)
>
> Best regards
> Petr Kobalicek
>
> On Wed, Oct 27, 2010 at 1:34 AM, Mike Tajmajer
> <mi...@igraphicsgroup.com> wrote:
> > Hi Petr,
> >
> > I have my new shader compiler handing MOV with swizzle and negate for
> > variables and arrays.  This was a fatal flaw in my first design
(arrays).
> >
> > Sorry for the slow progress rate; between work-work, and Civilization
> > 5 I've been busy.
> >
> > But, this is a nice milestone && the next set of opcodes should go
quickly.
> > My plan is to implement the basic ones, then start testing via Cg code.
> >
> > Hope all is going well for you!
> >

Reply all
Reply to author
Forward
0 new messages