Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
TextureResource.h
Go to the documentation of this file.
1#pragma once
2
5
6#include <memory>
7#include <cstddef>
8
9namespace ph::editor::render
10{
11
13{
14public:
16
17 ~TextureResource() override;
18
19 virtual std::size_t getWidthPx() const;
20 virtual std::size_t getHeightPx() const;
21 virtual std::size_t numLayers() const;
23
24 void setupGHI(GHIThreadCaller& caller) override = 0;
25 void cleanupGHI(GHIThreadCaller& caller) override = 0;
26};
27
28inline std::size_t TextureResource::getWidthPx() const
29{
30 return 0;
31}
32
33inline std::size_t TextureResource::getHeightPx() const
34{
35 return 0;
36}
37
38inline std::size_t TextureResource::numLayers() const
39{
40 return 0;
41}
42
43}// end namespace ph::editor::render
Thin wrapper for GHI thread interactions from another thread. Mainly to hide unrelated GHI interface ...
Definition GHIThreadCaller.h:16
Definition ISceneResource.h:9
Definition TextureResource.h:13
virtual std::size_t getHeightPx() const
Definition TextureResource.h:33
void cleanupGHI(GHIThreadCaller &caller) override=0
TextureResource()
Definition TextureResource.cpp:6
void setupGHI(GHIThreadCaller &caller) override=0
virtual std::size_t getWidthPx() const
Definition TextureResource.h:28
virtual ghi::TextureHandle getGHITextureHandle() const =0
virtual std::size_t numLayers() const
Definition TextureResource.h:38
Definition DesignerObject.h:19