Skip to content

Commit

Permalink
Attempt at DSX and DSY in nv2 profile.
Browse files Browse the repository at this point in the history
I'm not sure if these map directly to the Direct3D opcodes, though...

--HG--
branch : trunk
  • Loading branch information
icculus committed Jul 7, 2008
1 parent d1d8b35 commit 272107e
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions mojoshader.c
Expand Up @@ -4827,8 +4827,23 @@ static void emit_ARB1_DP2ADD(Context *ctx)
} // emit_ARB1_DP2ADD


EMIT_ARB1_OPCODE_UNIMPLEMENTED_FUNC(DSX)
EMIT_ARB1_OPCODE_UNIMPLEMENTED_FUNC(DSY)
static void emit_ARB1_DSX(Context *ctx)
{
if (ctx->support_nv2) // nv2 has a built-in equivalent to DSX.
emit_ARB1_opcode_ds(ctx, "DDX");
else
failf(ctx, "DSX unsupported in %s profile", ctx->profile->name);
} // emit_ARB1_DSX


static void emit_ARB1_DSY(Context *ctx)
{
if (ctx->support_nv2) // nv2 has a built-in equivalent to DSY.
emit_ARB1_opcode_ds(ctx, "DDY");
else
failf(ctx, "DSY unsupported in %s profile", ctx->profile->name);
} // emit_ARB1_DSY

EMIT_ARB1_OPCODE_UNIMPLEMENTED_FUNC(TEXLDD)


Expand Down

0 comments on commit 272107e

Please sign in to comment.