tgsi_transform_context Struct Reference

Subclass this to add caller-specific data. More...

Collaboration diagram for tgsi_transform_context:

Collaboration graph
[legend]

Data Fields

void(* transform_instruction )(struct tgsi_transform_context *ctx, struct tgsi_full_instruction *inst)
 User-defined callbacks invoked per instruction.
void(* transform_declaration )(struct tgsi_transform_context *ctx, struct tgsi_full_declaration *decl)
void(* transform_immediate )(struct tgsi_transform_context *ctx, struct tgsi_full_immediate *imm)
void(* epilog )(struct tgsi_transform_context *ctx)
 Called at end of input program to allow caller to append extra instructions.
void(* emit_instruction )(struct tgsi_transform_context *ctx, const struct tgsi_full_instruction *inst)
 These are setup by tgsi_transform_shader() and cannot be overridden.
void(* emit_declaration )(struct tgsi_transform_context *ctx, const struct tgsi_full_declaration *decl)
void(* emit_immediate )(struct tgsi_transform_context *ctx, const struct tgsi_full_immediate *imm)
struct tgsi_headerheader
uint max_tokens_out
struct tgsi_tokentokens_out
uint ti

Detailed Description

Subclass this to add caller-specific data.

Definition at line 41 of file tgsi_transform.h.


Field Documentation

void(* tgsi_transform_context::transform_instruction)(struct tgsi_transform_context *ctx, struct tgsi_full_instruction *inst)

User-defined callbacks invoked per instruction.

void(* tgsi_transform_context::transform_declaration)(struct tgsi_transform_context *ctx, struct tgsi_full_declaration *decl)

void(* tgsi_transform_context::transform_immediate)(struct tgsi_transform_context *ctx, struct tgsi_full_immediate *imm)

void(* tgsi_transform_context::epilog)(struct tgsi_transform_context *ctx)

Called at end of input program to allow caller to append extra instructions.

Return number of tokens emitted.

void(* tgsi_transform_context::emit_instruction)(struct tgsi_transform_context *ctx, const struct tgsi_full_instruction *inst)

These are setup by tgsi_transform_shader() and cannot be overridden.

Meant to be called from in the above user callback functions.

void(* tgsi_transform_context::emit_declaration)(struct tgsi_transform_context *ctx, const struct tgsi_full_declaration *decl)

void(* tgsi_transform_context::emit_immediate)(struct tgsi_transform_context *ctx, const struct tgsi_full_immediate *imm)

struct tgsi_header* tgsi_transform_context::header [read]

Definition at line 77 of file tgsi_transform.h.

uint tgsi_transform_context::max_tokens_out

Definition at line 78 of file tgsi_transform.h.

struct tgsi_token* tgsi_transform_context::tokens_out [read]

Definition at line 79 of file tgsi_transform.h.

uint tgsi_transform_context::ti

Definition at line 80 of file tgsi_transform.h.


The documentation for this struct was generated from the following file:
Generated on Tue Sep 29 06:26:07 2009 for Gallium3D by  doxygen 1.5.4