MCPcopy Create free account
hub / github.com/RenderKit/embree / Texture

Method Texture

tutorials/common/scenegraph/texture.cpp:21–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 }
20
21 Texture::Texture ()
22 : width(-1), height(-1), format(INVALID), bytesPerTexel(0), width_mask(0), height_mask(0), data(nullptr) {}
23
24 Texture::Texture(Ref<Image> img, const std::string &&fileName)
25 : width(unsigned(img->width)), height(unsigned(img->height)), format(RGBA8), bytesPerTexel(4), width_mask(0), height_mask(0), data(nullptr), fileName(fileName)

Callers

nothing calls this directly

Calls 3

isPowerOf2Function · 0.85
alignedUSMMallocFunction · 0.85
convertToRGBA8Method · 0.80

Tested by

no test coverage detected