| 876 | } |
| 877 | |
| 878 | ref<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 | |
| 897 | ref<Sampler> Device::createSampler(const Sampler::Desc& desc) |
| 898 | { |