MCPcopy Create free account
hub / github.com/NVIDIA-RTX/NVRHI / createSamplerFeedbackTexture

Method createSamplerFeedbackTexture

src/validation/validation-device.cpp:282–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280 }
281
282 SamplerFeedbackTextureHandle DeviceWrapper::createSamplerFeedbackTexture(ITexture* pairedTexture, const SamplerFeedbackTextureDesc& desc)
283 {
284 const GraphicsAPI graphicsApi = m_Device->getGraphicsAPI();
285 if (graphicsApi != GraphicsAPI::D3D12)
286 {
287 std::stringstream ss;
288 ss << "The current graphics API (" << utils::GraphicsAPIToString(m_Device->getGraphicsAPI()) << ") "
289 "doesn't support createSamplerFeedbackTexture";
290 error(ss.str());
291 return nullptr;
292 }
293
294 return m_Device->createSamplerFeedbackTexture(pairedTexture, desc);
295 }
296
297 SamplerFeedbackTextureHandle DeviceWrapper::createSamplerFeedbackForNativeTexture(ObjectType objectType, Object texture, ITexture* pairedTexture)
298 {

Callers

nothing calls this directly

Calls 2

GraphicsAPIToStringFunction · 0.85
getGraphicsAPIMethod · 0.45

Tested by

no test coverage detected