{ "info": { "author": "Daniel Stokes", "author_email": "stokes.daniel.j@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Testing" ], "description": "# shadertest\nA Python library for unit testing GLSL functions\n\n## Example\nBelow we have a very simple fragment shader called `add.frag`.\n```glsl\n#version 330\n\nout vec4 outColor;\n\nfloat add(float a, float b) {\n return a + b;\n}\nvoid main() {\n\toutColor = vec4(add(0.5, 0.5));\n}\n```\n\nTo test using shadertest, we just need to create a `ShaderContext`, and start calling functions from the shader.\n```python\nimport pytest\n\nimport shadertest\n\n\n@pytest.fixture(scope='module')\ndef basic_shader():\n with shadertest.ShaderContext.from_file('add.frag') as funcs:\n yield funcs\n\n\ndef test_add(basic_shader):\n assert basic_shader.add(4, 2) == 6\n```\n\n## Supported data types\nThe following data types are supported for return values and function arguments:\n* bool\n* int\n* uint\n* float\n* bvecn\n* ivecn\n* vecn\n\nFor more information about GLSL data types, checkout the [Khronos wiki page](https://www.khronos.org/opengl/wiki/Data_Type_%28GLSL%29) on them.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Kupoman/shadertest", "keywords": "glsl unit test", "license": "", "maintainer": "", "maintainer_email": "", "name": "shadertest", "package_url": "https://pypi.org/project/shadertest/", "platform": "", "project_url": "https://pypi.org/project/shadertest/", "project_urls": { "Homepage": "https://github.com/Kupoman/shadertest" }, "release_url": "https://pypi.org/project/shadertest/0.2.1/", "requires_dist": [ "PyOpenGL", "PySDL2" ], "requires_python": "", "summary": "A Python library for unit testing GLSL functions", "version": "0.2.1" }, "last_serial": 4578467, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "56048f2667e3f152652ae5aa20ce1b91", "sha256": "a7238f66e0b155c435eec2360c18279671827a9b378a8fca30dc314fa5fef6b4" }, "downloads": -1, "filename": "shadertest-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "56048f2667e3f152652ae5aa20ce1b91", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4859, "upload_time": "2018-11-04T19:56:37", "url": "https://files.pythonhosted.org/packages/c4/9e/f2ffe49d04e2c3e0e1e1015fafc6dae793e558ebf1faee149bedb38491a3/shadertest-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "048b224750bb5ccf6f4329a55beb5047", "sha256": "ef6eae26df06cddfccdc4a828d82994dc6188ca2353eecbb29972c18346af34c" }, "downloads": -1, "filename": "shadertest-0.1.0.tar.gz", "has_sig": false, "md5_digest": "048b224750bb5ccf6f4329a55beb5047", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2945, "upload_time": "2018-11-04T19:56:38", "url": "https://files.pythonhosted.org/packages/ee/63/5a03c997eaf5ddcdc0b073c6ecb307146f5ef4a3bb86378f8069756a3a54/shadertest-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "a5c9d15df247d6f8cb1d38e0298797d2", "sha256": "1a0c49b32013c84a08185cd757620dd5bdd9fda1bdbccf4b05e891bd250449ba" }, "downloads": -1, "filename": "shadertest-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a5c9d15df247d6f8cb1d38e0298797d2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6510, "upload_time": "2018-12-10T00:10:11", "url": "https://files.pythonhosted.org/packages/00/2c/9a010edb6c40a0cc4272659a4dedbd80691fe467fc711232cd7ea2231666/shadertest-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0e2358ccbfccab0e2c802ae6f9c8cb0d", "sha256": "8b4797ee7d56f522b4894a463514b5c718a3295d03894a7a1a40a7783826b4e1" }, "downloads": -1, "filename": "shadertest-0.2.0.tar.gz", "has_sig": false, "md5_digest": "0e2358ccbfccab0e2c802ae6f9c8cb0d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4410, "upload_time": "2018-12-10T00:10:12", "url": "https://files.pythonhosted.org/packages/bb/77/ae01eff9036cf9c45388fb69b871c1f075bdcc2fe88121e6335e2502659b/shadertest-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "2df8a05fd49afe2671a955a0a0f40e83", "sha256": "46fa227e1fb97308f2e960d0449e3bd6f4bc969ae9f4816b4e612852f95fb9d8" }, "downloads": -1, "filename": "shadertest-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "2df8a05fd49afe2671a955a0a0f40e83", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6503, "upload_time": "2018-12-10T00:27:02", "url": "https://files.pythonhosted.org/packages/79/63/bf20be15f741faa843249a35d7b762903b7203ced13077bd8acb2d08984f/shadertest-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6fbc0e30906493e5a8b6603affc00313", "sha256": "37a31872ab39dc751e51f4bfca306d999b41622841352a7f34c20ff8182240ab" }, "downloads": -1, "filename": "shadertest-0.2.1.tar.gz", "has_sig": false, "md5_digest": "6fbc0e30906493e5a8b6603affc00313", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4405, "upload_time": "2018-12-10T00:27:04", "url": "https://files.pythonhosted.org/packages/60/29/f10479de8693834f053520eca61f03972588c743345af9deb88785fd1d09/shadertest-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2df8a05fd49afe2671a955a0a0f40e83", "sha256": "46fa227e1fb97308f2e960d0449e3bd6f4bc969ae9f4816b4e612852f95fb9d8" }, "downloads": -1, "filename": "shadertest-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "2df8a05fd49afe2671a955a0a0f40e83", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6503, "upload_time": "2018-12-10T00:27:02", "url": "https://files.pythonhosted.org/packages/79/63/bf20be15f741faa843249a35d7b762903b7203ced13077bd8acb2d08984f/shadertest-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6fbc0e30906493e5a8b6603affc00313", "sha256": "37a31872ab39dc751e51f4bfca306d999b41622841352a7f34c20ff8182240ab" }, "downloads": -1, "filename": "shadertest-0.2.1.tar.gz", "has_sig": false, "md5_digest": "6fbc0e30906493e5a8b6603affc00313", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4405, "upload_time": "2018-12-10T00:27:04", "url": "https://files.pythonhosted.org/packages/60/29/f10479de8693834f053520eca61f03972588c743345af9deb88785fd1d09/shadertest-0.2.1.tar.gz" } ] }