Exemplo n.º 1
0
            public GX2Shader GetGX2Shader()
            {
                if (gx2Shader != null)
                {
                    return(gx2Shader);
                }

                using (var binaryReader = new FileReader(Data))
                {
                    switch (Type)
                    {
                    case ShaderType.GX2VertexShader:
                        gx2Shader = new GX2VertexShader(binaryReader, 0);
                        break;

                    case ShaderType.GX2PixelShader:
                        gx2Shader = new GX2PixelShader(binaryReader, 0);
                        break;
                    }
                }
                return(gx2Shader);
            }
 public SHARCFBProgramWrapper(GX2Shader vertexShader, GX2Shader fragmentShader)
 {
     VertexBinary   = (GX2VertexShader)vertexShader;
     FragmentBinary = (GX2PixelShader)fragmentShader;
 }