Ejemplo n.º 1
0
int main() {
  return sampleFunc(5) + simpleFunc(5);
}
Ejemplo n.º 2
0
static void
LD(State &state, const latte::ControlFlowInst &cf, const latte::TextureFetchInst &inst)
{
   // Texel Fetch
   sampleFunc(state, cf, inst, "texelFetch", "texelFetchOffset", false, latte::SQ_SEL::SEL_MASK, true);
}
Ejemplo n.º 3
0
static void
SAMPLE_C(State &state, const latte::ControlFlowInst &cf, const latte::TextureFetchInst &inst)
{
   sampleFunc(state, cf, inst, "texture", "textureOffset", true);
}
Ejemplo n.º 4
0
static void
SAMPLE_LZ(State &state, const latte::ControlFlowInst &cf, const latte::TextureFetchInst &inst)
{
   // Sample with LOD Zero
   sampleFunc(state, cf, inst, "textureLod", "textureLodOffset", false, latte::SQ_SEL::SEL_0);
}
Ejemplo n.º 5
0
static void
FETCH4(State &state, const latte::ControlFlowInst &cf, const latte::TextureFetchInst &inst)
{
   sampleFunc(state, cf, inst, "textureGather", "textureGatherOffset");
}