ConditionalRender#

class ConditionalRender#

Available in Query.crender

This class represents a ConditionalRender object.

ConditionalRender objects can only be accessed from Query objects.

Examples#

query = ctx.query(any_samples=True)

with query:
    vao1.render()

with query.crender:
    print('This will always get printed')
    vao2.render()  # But this will be rendered only if vao1 has passing samples.