Returns the default context for the system. The default context is created for the default device on the system (as returned by default_device()). The default context is created once on the first time this function is called. Calling this function multiple times will always result in the same context object being returned.
| 144 | /// called. Calling this function multiple times will always result in the |
| 145 | /// same context object being returned. |
| 146 | static context default_context() |
| 147 | { |
| 148 | static context default_context(default_device()); |
| 149 | |
| 150 | return default_context; |
| 151 | } |
| 152 | |
| 153 | /// Returns the default command queue for the system. |
| 154 | static command_queue& default_queue() |
nothing calls this directly
no outgoing calls
no test coverage detected