Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FXC: error X3501: 'main': entrypoint not found

754 views
Skip to first unread message

John Bolton

unread,
Jul 29, 2003, 4:20:02 PM7/29/03
to
I get this error when I use FXC:

error X3501: 'main': entrypoint not found

I don't have an entrypoint because I am using shader assembly. How do I use
FXC without HLSL?
Here is the command line:

fxc /nologo /Zi /Od /Fo Debug\Effect.fxo Effect.fx

Here is the FX file:

texture Texture;
technique
{
pass
{
Texture[0] = < Texture >;
MinFilter[0] = LINEAR;
MagFilter[0] = LINEAR;
MipFilter[0] = LINEAR;
AddressU[0] = CLAMP;
AddressV[0] = CLAMP;
VertexShader =
asm
{
vs_1_1
...
};
PixelShader =
asm
{
ps_1_1
...
};
}
}


Pai-Hung Chen [MS]

unread,
Jul 30, 2003, 6:51:16 PM7/30/03
to
In your case, you need to specify the fx_2_0 profile in the fxc cmdline as:

/T:fx_2_0

--
Pai-Hung Chen
Direct3D, Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.

"John Bolton" <no_spam_j...@no.spam.yahoo.com> wrote in message
news:eqssI7gV...@TK2MSFTNGP12.phx.gbl...

0 new messages