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

Function setup_renderpass

scripts/python/test_replace_material.py:3–11  ·  view source on GitHub ↗
(testbed)

Source from the content-addressed store, hash-verified

1import falcor
2
3def setup_renderpass(testbed):
4 render_graph = testbed.create_render_graph("PathTracer")
5 render_graph.create_pass("PathTracer", "PathTracer", {'samplesPerPixel': 1})
6 render_graph.create_pass("VBufferRT", "VBufferRT", {'samplePattern': 'Stratified', 'sampleCount': 16, 'useAlphaTest': True})
7 render_graph.create_pass("AccumulatePass", "AccumulatePass", {'enabled': True, 'precisionMode': 'Single'})
8 render_graph.add_edge("VBufferRT.vbuffer", "PathTracer.vbuffer")
9 render_graph.add_edge("PathTracer.color", "AccumulatePass.input")
10 render_graph.mark_output("AccumulatePass.output")
11 testbed.render_graph = render_graph
12
13def main():
14 falcor.Logger.verbosity = falcor.Logger.Level.Info

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected