MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / createTextureFromResource

Method createTextureFromResource

Source/Falcor/Core/API/Device.cpp:878–895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

876}
877
878ref<Texture> Device::createTextureFromResource(
879 gfx::ITextureResource* pResource,
880 Texture::Type type,
881 ResourceFormat format,
882 uint32_t width,
883 uint32_t height,
884 uint32_t depth,
885 uint32_t arraySize,
886 uint32_t mipLevels,
887 uint32_t sampleCount,
888 ResourceBindFlags bindFlags,
889 Resource::State initState
890)
891{
892 return make_ref<Texture>(
893 ref<Device>(this), pResource, type, format, width, height, depth, arraySize, mipLevels, sampleCount, bindFlags, initState
894 );
895}
896
897ref<Sampler> Device::createSampler(const Sampler::Desc& desc)
898{

Callers 1

prepareImagesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected