blend.h 3.32 KB
/* This is a description of the Blender I/O vector */
/*#define VECTORLEN       52
#define VECTORINLEN     44
*/
typedef enum Signals {St_span, Ncyc,Blend_mask,Z_source_select,
	Antialias_enable,Z_compare_enable,Z_update_enable,Z_mode,
	Cvg_dest,Color_on_cvg,Force_blend,Mask15b,Bl_p_sel_0_r,
	Bl_m_sel_0_r,Bl_a_sel_0_r,Bl_b_sel_0_r,Bl_p_sel_1_r,
	Bl_m_sel_1_r,Bl_a_sel_1_r,Bl_b_sel_1_r,Blend_r,Blend_g,
	Blend_b,Fog_r,Fog_g,Fog_b,Fog_a,Pixel_r,Pixel_g,Pixel_b,
	Pixel_a,Pixel_cvg,Shade_a,St_z,Dzdx,Dzdy,Prim_z,
	Prim_delta_z,Mem_r,Mem_g,Mem_b,Mem_a,Mem_z,Valid,Span_r,
	Span_g,Span_b,Span_a,Span_z,Span_color_we,Span_depth_we,
	Dv_4,Dv_5,VECTORLEN} Signals;
#define OUTVECTOR		Span_r
/*
int typemask;        indicates whether its in the in//out file 
int cycle;           which cycle the signal is valid 
int digits;          how many digits to print (0=1 digit, no 0X) 
char *pre,*post;     pre is "\n" for new line.  post is space(s) 
int color;           color 0-10.  Errors print in color 5 (red) 
 */
static Vectorinfo wheretoget[VECTORLEN] = {
        3,0,0,""," ",8,   /*  0 st_span */
        3,0,0,"","  ",8,  /*  1 ncyc */
        3,4,2,""," ",8,   /*  2 blend_masK */
        3,1,0,""," ",8,   /*  3 z_source_select  */
        3,3,0,""," ",8,   /*  4 antialias_enable  */
        3,3,0,""," ",8,   /*  5 z_compare_enable  */
        3,3,0,""," ",8,   /*  6 z_update_enable  */
        3,3,0,""," ",8,   /*  7 z_mode */
        3,4,0,""," ",8,   /*  8 cvg_dest */
        3,4,0,""," ",8,   /*  9 color_on_cvg  */
        3,3,0,""," ",8,   /* 10 force_blend  */
        3,3,0,"","  ",8,  /* 11 mask15b  */
        3,1,0,""," ",8,   /* 12 bl_p_sel_0_r */
        3,1,0,""," ",8,   /* 13 bl_m_sel_0_r */
        3,1,0,""," ",8,   /* 14 bl_a_sel_0_r */
        3,1,0,""," ",8,   /* 15 bl_b_sel_0_r */
        3,1,0,""," ",8,   /* 16 bl_p_sel_1_r */
        3,1,0,""," ",8,   /* 17 bl_m_sel_1_r */
        3,1,0,""," ",8,   /* 18 bl_a_sel_1_r */
        3,1,0,"","  ",8,  /* 19 bl_b_sel_1_r */
        3,2,2,""," ",8,   /* 20 blend_r */
        3,2,2,""," ",8,   /* 21 blend_g */
        3,2,2,"","  ",8,  /* 22 blend_b */
        3,2,2,""," ",8,   /* 23 fog_r */
        3,2,2,""," ",8,   /* 24 fog_g */
        3,2,2,""," ",8,   /* 25 fog_b */
        3,2,2,"","  ",8,  /* 26 fog_a */
        3,2,2,""," ",8,   /* 27 pixel_r */
        3,2,2,""," ",8,   /* 28 pixel_g */
        3,2,2,""," ",8,   /* 29 pixel_b */
        3,2,3,"","  ",8,  /* 30 pixel_a */
        3,2,1,""," ",8,   /* 31 pixel_cvg */
        3,2,2,"","  ",8,  /* 32 shade_a */
        3,2,5,""," ",8,   /* 33 st_z */
        3,1,4,""," ",8,   /* 34 dzdx */
        3,1,4,"","  ",8,  /* 35 dzdy */
        3,2,4,""," ",8,   /* 36 prim_z */
        3,1,4,"","  ",8,  /* 37 prim_delta_z */
        3,2,2,""," ",8,   /* 38 mem_r */
        3,2,2,""," ",8,   /* 39 mem_g */
        3,2,2,""," ",8,   /* 40 mem_b */
        3,2,1,"","  ",8,  /* 41 mem_a */
        3,1,5,""," ",8,   /* 42 mem_z */
        1,0,0,""," ",8,   /* 43 valid */
        2,5,2,"\n"," ",4, /* 44 span_r */
        2,5,2,""," ",4,   /* 45 span_g */
        2,5,2,""," ",4,   /* 46 span_b */
        2,5,1,""," ",4,   /* 47 span_a */
        2,4,5,"","  ",4,  /* 48 span_z */
        2,5,0,""," ",4,   /* 49 span_color_we */
        2,4,0,"","  ",4,  /* 50 span_depth_we */
        2,4,0,""," ",4,   /* 51 dv_4 */
        2,5,0,""," ",4,   /* 52 dv_5 */
};