int main() { return sampleFunc(5) + simpleFunc(5); }
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); }
static void SAMPLE_C(State &state, const latte::ControlFlowInst &cf, const latte::TextureFetchInst &inst) { sampleFunc(state, cf, inst, "texture", "textureOffset", true); }
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); }
static void FETCH4(State &state, const latte::ControlFlowInst &cf, const latte::TextureFetchInst &inst) { sampleFunc(state, cf, inst, "textureGather", "textureGatherOffset"); }