sindney
34b3484baa
Update decode_mesh.py
2020-06-16 11:01:28 +01:00
baldurk
fa9215477d
Update examples to latest python API
2020-05-20 11:51:52 +01:00
baldurk
63c1ecd89c
Handle vertexOffset properly in mesh decode example. Closes #1852
2020-04-28 18:15:34 +01:00
baldurk
4e4ef40612
Add replay API initialisation/shutdown to python examples
2020-03-05 19:35:45 +00:00
baldurk
7d22448d3f
Sample code should take the capture to load as an argument
...
* This makes it easier to run the examples from the command line without editing
them
2020-01-15 09:23:12 +00:00
baldurk
702c7cf093
Add use of ReplayOptions to python API examples
2019-09-18 13:04:38 +01:00
Waffle
9aaca1bb5f
Fixed Incorrect Tuple Usage in unpackData
...
Fixed "IndexError: tuple index out of range"
`value = tuple(float(value[i]) / divisor for i in value)`
Was effectively attempting to access the value tuple using an element as an index.
`value = tuple(float(i) / divisor for i in value)`
Uses the elements from the tuple and modifies them.
Ex: (0,0,0,255) becomes: (0.0, 0.0, 0.0, 255.0)
Instead of throwing an error.
2019-07-22 12:42:26 +01:00
baldurk
27a4353ffa
Fix out of date python use in documentation examples
2019-01-16 12:38:10 +00:00
baldurk
416646d027
Fix example python scripts to work in the UI as well
...
* In the UI program we can't import renderdoc (it's already imported) so we just
alias it to rd.
2018-08-29 20:50:14 +01:00
baldurk
14e3a3d360
Move API-agnostic pipeline state wrapper into core interface
...
* There's no need for this to be in the UI, and moving it allows it to be used
from script which is very useful.
2018-06-18 18:39:06 +01:00
baldurk
11091f1e54
Tidy up python documentation and add examples
2018-06-15 19:44:37 +01:00