APlane( uint32_t width, uint32_t height, uint8_t depth=8 ) : width(width), height(height), depth(depth), data( width*height, ValType() ) { middle = ValType( pow( 2, depth-1 ) ); }
void assign(unsigned int width_, unsigned int height_, const ValType &clearval = ValType()) { width = width_; height = height_; values.assign(width*height, clearval); }
void wasm::writeGlobalType(raw_ostream &OS, const WasmGlobalType &Type) { // TODO: Update WasmGlobalType to use ValType and remove this cast. writeValueType(OS, ValType(Type.Type), "global type"); writeU8(OS, Type.Mutable, "global mutable"); }
void assign(const ValType &clearval = ValType()) { values.assign(width*height, clearval); }