case MEM_CONSTANT: return out << "constant";
case MEM_PRIVATE: return out << "private";
case IMAGE: return out << "image";
- case SAMPLER: return out << "sampler";
case MEM_INVALID: return out << "invalid";
};
return out;
MEM_CONSTANT, //!< Immutable global memory
MEM_PRIVATE, //!< Per thread private memory
IMAGE, //!< For texture image.
- SAMPLER, //!< For sampler.
MEM_INVALID
};
case 2: return ir::MEM_CONSTANT;
case 3: return ir::MEM_LOCAL;
case 4: return ir::IMAGE;
- case 5: return ir::SAMPLER;
}
GBE_ASSERT(false);
return ir::MEM_GLOBAL;
case ir::IMAGE:
ctx.input(argName, ir::FunctionArgument::IMAGE, reg, ptrSize);
break;
- case ir::SAMPLER:
- ctx.input(argName, ir::FunctionArgument::SAMPLER, reg, ptrSize);
break;
default: GBE_ASSERT(addrSpace != ir::MEM_PRIVATE);
}
typedef __texture struct _image2d_t* image2d_t;
struct _image3d_t;
typedef __texture struct _image3d_t* image3d_t;
-//typedef __sampler const uint* sampler_t;
typedef uint sampler_t;
typedef size_t event_t;
/////////////////////////////////////////////////////////////////////////////