Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 759 Bytes

d3d2glsl.h

File metadata and controls

32 lines (24 loc) · 759 Bytes
 
Feb 10, 2008
Feb 10, 2008
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
* d3d2glsl; generate GLSL programs from bytecode of compiled Direct3D shaders.
*
* Please see the file LICENSE.txt in the source's root directory.
*
* This file written by Ryan C. Gordon.
*/
#ifndef __INCL_D3D2GLSL_H_
#define __INCL_D3D2GLSL_H_
#ifdef __cplusplus
extern "C" {
#endif
Mar 14, 2008
Mar 14, 2008
16
17
18
typedef void *(*D3D2GLSL_malloc)(int bytes);
typedef void (*D3D2GLSL_free)(void *ptr);
Feb 10, 2008
Feb 10, 2008
19
20
/* !!! FIXME: documentation. */
/* !!! FIXME: this needs to change to return a buffer of GLSL code. */
Mar 11, 2008
Mar 11, 2008
21
int D3D2GLSL_parse(const char *profile, const unsigned char *tokenbuf,
Mar 14, 2008
Mar 14, 2008
22
23
const unsigned int bufsize, D3D2GLSL_malloc m,
D3D2GLSL_free f);
Feb 10, 2008
Feb 10, 2008
24
25
26
27
28
29
30
31
#ifdef __cplusplus
}
#endif
#endif /* include-once blocker. */
/* end of d3d2glsl.h ... */