Almar Klein

Results 1569 comments of Almar Klein

> The two classes named GPUAdapterInfo are never actually used. Good point! the `adapter.info` property simply returns a dict. We can improve this by instead returning `GPUAdapterInfo`. And then implement...

I think both problems have been addressed by now. Feel free to re-open if you disagree.

https://github.com/pygfx/rendercanvas/issues/58

Is this still an issue after the pylinalg and transform refactorings?

### Slots You can use the class attributes `__slots__`. Then the object wil not use a dict for its attributes, but a pre-baked thingy. I've only ever used this for...

Some more details regarding inheritance. The class that you inherit from must also implement ``__slots__`` other wise it wont work: ```py class Foo: def __init__(self): self.foo = 4 class Bar(Foo):...

I also wonder how the metaclass logic finds out what slots should be used for the subclass. Are these classes often being subclassed by users?

The easiest way is to copy the `__main__.py` to your own `ttboot.py` or somerthing, and you can control all the things you mentioned above. Does that make sense?

> Didn't find any file ttboot.py in the repo, I meant this as a file to create yourself. The `__main__.py` was originally meant as an example main script :)

In wgpu-py we don't use it, because in a wrapper its easy to keep track of the map-state yourself. I think its safe to assume that if `wgpuBufferUnmap()` successfully returns,...