MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / set_texture

Method set_texture

modules/engine/runtime/src/io/vram/components.cpp:72–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void VRAMTextureComponent::set_texture(CGPUTextureId texture) SKR_NOEXCEPT
73{
74 this->texture = texture;
75 this->device = texture->device;
76 this->type = Type::Imported;
77}
78
79void VRAMTextureComponent::set_texture(CGPUDeviceId device, const CGPUTextureDescriptor* desc) SKR_NOEXCEPT
80{

Callers 3

InstallImplMethod · 0.45
from_imageMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected