| 144 | } |
| 145 | |
| 146 | ResourceBindFlags getBindFlags(bool isDepth, bool allowUav) |
| 147 | { |
| 148 | ResourceBindFlags flags = ResourceBindFlags::ShaderResource; |
| 149 | flags |= isDepth ? ResourceBindFlags::DepthStencil : ResourceBindFlags::RenderTarget; |
| 150 | |
| 151 | if (allowUav) |
| 152 | { |
| 153 | flags |= ResourceBindFlags::UnorderedAccess; |
| 154 | } |
| 155 | return flags; |
| 156 | } |
| 157 | }; // namespace |
| 158 | |
| 159 | size_t Fbo::DescHash::operator()(const Fbo::Desc& d) const |
no outgoing calls
no test coverage detected