[WINED3D 5/9] Prototype the GLSL functions for use with pixel and vertex shaders

Jason Green jave27 at gmail.com
Fri Jun 9 02:35:15 CDT 2006

-------------- next part --------------
From nobody Mon Sep 17 00:00:00 2001
From: Jason <jason at jave02.(none)>
Date: Fri, 9 Jun 2006 03:20:32 -0400
Subject: [PATCH 5/9] Prototype the GLSL functions for use with pixel and vertex shaders


 dlls/wined3d/wined3d_private.h |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index 7cc07b3..31afe74 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -1317,6 +1317,25 @@ extern const SHADER_OPCODE* shader_get_o
 /* ARB shader program Prototypes */
 extern void shader_hw_def(SHADER_OPCODE_ARG *arg);
+/** The following translate DirectX pixel/vertex shader opcodes to GLSL lines */
+extern void shader_glsl_map2gl(SHADER_OPCODE_ARG* arg);
+extern void shader_glsl_arith(SHADER_OPCODE_ARG* arg);
+extern void shader_glsl_mov(SHADER_OPCODE_ARG* arg);
+extern void shader_glsl_mad(SHADER_OPCODE_ARG* arg);
+extern void shader_glsl_mnxn(SHADER_OPCODE_ARG* arg);
+extern void shader_glsl_lrp(SHADER_OPCODE_ARG* arg);
+extern void shader_glsl_dot(SHADER_OPCODE_ARG* arg);
+extern void shader_glsl_rcp(SHADER_OPCODE_ARG* arg);
+extern void shader_glsl_cnd(SHADER_OPCODE_ARG* arg);
+extern void shader_glsl_compare(SHADER_OPCODE_ARG* arg);
+extern void shader_glsl_def(SHADER_OPCODE_ARG* arg);
+extern void shader_glsl_cmp(SHADER_OPCODE_ARG* arg);
+/** GLSL Pixel Shader Prototypes */
+extern void pshader_glsl_tex(SHADER_OPCODE_ARG* arg);
+extern void pshader_glsl_texcoord(SHADER_OPCODE_ARG* arg);
+extern void pshader_glsl_texm3x2pad(SHADER_OPCODE_ARG* arg);
+extern void pshader_glsl_texm3x2tex(SHADER_OPCODE_ARG* arg);
  * IDirect3DBaseShader implementation structure

More information about the wine-patches mailing list