Merge pull request #249 from KomputeProject/248_update_py_shader
Updated readme to reflect shader utils
This commit is contained in:
commit
950ed2e9d0
1 changed files with 3 additions and 1 deletions
|
|
@ -165,6 +165,8 @@ The [Python package](https://kompute.cc/overview/python-package.html) provides a
|
|||
|
||||
```python
|
||||
|
||||
from .utils import compile_source # using util function from python/test/utils
|
||||
|
||||
def kompute(shader):
|
||||
# 1. Create Kompute Manager with default settings (device 0, first queue and no extensions)
|
||||
mgr = kp.Manager()
|
||||
|
|
@ -187,7 +189,7 @@ def kompute(shader):
|
|||
push_consts_b = [3]
|
||||
|
||||
# See documentation shader section for compile_source
|
||||
spirv = kp.Shader.compile_source(shader)
|
||||
spirv = compile_source(shader)
|
||||
|
||||
algo = mgr.algorithm(params, spirv, workgroup, spec_consts, push_consts_a)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue