My Project
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
shdr.h
Go to the documentation of this file.
1 #pragma once
2 
3 typedef enum{
6 }SHDR_type;
7 
8 typedef enum{
10  RESULT_COLOR = 0x2,
15 
16 typedef struct{
21 }DVLP_s;
22 
23 typedef struct{
25  u32 data[4];
27 
28 typedef struct{
33 
34 typedef struct{
39 
40 typedef struct{
42  u32 mainOffset, endmainOffset;
50 }DVLE_s;
51 
52 typedef struct{
56 }DVLB_s;
57 
58 
59 DVLB_s* SHDR_ParseSHBIN(u32* shbinData, u32 shbinSize);
60 void SHDR_UseProgram(DVLB_s* dvlb, u8 id);
61 void SHDR_FreeDVLB(DVLB_s* dvlb);
62 s8 SHDR_GetUniformRegister(DVLB_s* dvlb, const char* name, u8 programID);
63 
64 void DVLP_SendCode(DVLP_s* dvlp);
65 void DVLP_SendOpDesc(DVLP_s* dvlp);
66 
67 void DVLE_SendOutmap(DVLE_s* dvle);
68 void DVLE_SendConstants(DVLE_s* dvle);
u32 constTableSize
Definition: shdr.h:43
int8_t s8
Definition: types.h:26
u32 * codeData
Definition: shdr.h:18
DVLP_s DVLP
Definition: shdr.h:54
u32 header
Definition: shdr.h:24
void DVLP_SendOpDesc(DVLP_s *dvlp)
Definition: shdr.c:99
DVLE_s * DVLE
Definition: shdr.h:55
uint16_t u16
Definition: types.h:22
SHDR_outType
Definition: shdr.h:8
void DVLE_SendOutmap(DVLE_s *dvle)
Definition: shdr.c:114
u32 uniformTableSize
Definition: shdr.h:47
Definition: shdr.h:52
u32 header
Definition: shdr.h:31
u32 * opcdescData
Definition: shdr.h:20
uint8_t u8
Definition: types.h:21
void DVLE_SendConstants(DVLE_s *dvle)
Definition: shdr.c:155
u32 opdescSize
Definition: shdr.h:19
uint32_t u32
Definition: types.h:23
SHDR_type
Definition: shdr.h:3
void SHDR_UseProgram(DVLB_s *dvlb, u8 id)
Definition: shdr.c:181
Definition: shdr.h:34
u32 mainOffset
Definition: shdr.h:42
Definition: shdr.h:16
SHDR_type type
Definition: shdr.h:41
u32 numDVLE
Definition: shdr.h:53
u16 endReg
Definition: shdr.h:37
void SHDR_FreeDVLB(DVLB_s *dvlb)
Definition: shdr.c:207
s8 SHDR_GetUniformRegister(DVLB_s *dvlb, const char *name, u8 programID)
Definition: shdr.c:59
u32 symbolOffset
Definition: shdr.h:35
DVLB_s * SHDR_ParseSHBIN(u32 *shbinData, u32 shbinSize)
Definition: shdr.c:11
u32 outTableSize
Definition: shdr.h:45
u16 regID
Definition: shdr.h:30
char * symbolTableData
Definition: shdr.h:49
Definition: shdr.h:23
DVLE_constEntry_s * constTableData
Definition: shdr.h:44
void DVLP_SendCode(DVLP_s *dvlp)
Definition: shdr.c:86
Definition: shdr.h:40
DVLE_outEntry_s * outTableData
Definition: shdr.h:46
Definition: shdr.h:28
u32 codeSize
Definition: shdr.h:17
u16 type
Definition: shdr.h:29
DVLE_uniformEntry_s * uniformTableData
Definition: shdr.h:48
u16 startReg
Definition: shdr.h:36