MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / texture

Method texture

src/renderer.rs:283–288  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

281
282impl TextureOwner {
283 pub fn texture(&self) -> &Texture2D {
284 match self {
285 TextureOwner::Standalone(tex) => tex,
286 TextureOwner::RenderTarget(rt) => &rt.texture,
287 }
288 }
289}
290
291impl From<Texture2D> for TextureOwner {

Callers 5

getMethod · 0.80
get_or_loadMethod · 0.80
get_or_createMethod · 0.80
get_or_create_asyncMethod · 0.80
cacheMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected