This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from wgpu.gui.auto import WgpuCanvas, run | |
import pygfx as gfx | |
import pylinalg as la | |
import numpy as np | |
def set_position(ob, pos): | |
# compat between old and new api | |
if hasattr(ob, "local"): | |
ob.local.position = pos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
In https://github.com/pygfx/wgpu-py/issues/114 we tried to find a way | |
to invalidate numpy/memoryview views when the base memory was released. | |
This file lists some attempts (and related cases) that demonstrates how | |
thet do not work. | |
In the end, we've not found a way to do it. | |
""" | |
import ctypes |
OlderNewer