Subversion Repositories Kolibri OS

Rev

Rev 3770 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3770 Serge 1
 
2
#include "pipe/p_context.h"
3
#include "pipe/p_shader_tokens.h"
4
#include "pipe/p_state.h"
5
#include "tgsi/tgsi_text.h"
6
#include "util/u_debug.h"
7
#include "util/u_memory.h"
8
#include "state_tracker/graw.h"
9
10
 
11
 */
12
PUBLIC void *
13
graw_parse_geometry_shader(struct pipe_context *pipe,
14
                           const char *text)
15
{
16
   struct tgsi_token tokens[1024];
17
   struct pipe_shader_state state;
18
19
 
20
      return NULL;
21
22
 
23
   state.tokens = tokens;
24
   return pipe->create_gs_state(pipe, &state);
25
}
26
27
 
28
graw_parse_vertex_shader(struct pipe_context *pipe,
29
                         const char *text)
30
{
31
   struct tgsi_token tokens[1024];
32
   struct pipe_shader_state state;
33
34
 
35
      return NULL;
36
37
 
38
   state.tokens = tokens;
39
   return pipe->create_vs_state(pipe, &state);
40
}
41
42
 
43
graw_parse_fragment_shader(struct pipe_context *pipe,
44
                           const char *text)
45
{
46
   struct tgsi_token tokens[1024];
47
   struct pipe_shader_state state;
48
49
 
50
      return NULL;
51
52
 
53
   state.tokens = tokens;
54
   return pipe->create_fs_state(pipe, &state);
55
}
56
57
 
58
59
 
60
graw_parse_args(int *argi,
61
                int argc,
62
                char *argv[])
63
{
64
   if (strcmp(argv[*argi], "-o") == 0) {
65
      if (*argi + 1 >= argc) {
66
         return FALSE;
67
      }
68
69
 
70
      out_filename[sizeof(out_filename) - 1] = '\0';
71
      *argi += 2;
72
      return TRUE;
73
   }
74
75
 
76
}
77
78
 
79
graw_save_surface_to_file(struct pipe_context *pipe,
80
                          struct pipe_surface *surface,
81
                          const char *filename)
82
{
83
   if (!filename || !*filename) {
84
      filename = out_filename;
85
      if (!filename || !*filename) {
86
         return FALSE;
87
      }
88
   }
89
90
 
91
    */
92
//   debug_dump_surface_bmp(pipe, filename, surface);
93
   return TRUE;
94
}
95