nv-sgl 0.6.0__cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. include/tevclient.h +393 -0
  2. nv_sgl-0.6.0.dist-info/LICENSE +29 -0
  3. nv_sgl-0.6.0.dist-info/METADATA +21 -0
  4. nv_sgl-0.6.0.dist-info/RECORD +133 -0
  5. nv_sgl-0.6.0.dist-info/WHEEL +6 -0
  6. nv_sgl-0.6.0.dist-info/top_level.txt +1 -0
  7. sgl/__init__.py +15 -0
  8. sgl/__init__.pyi +6738 -0
  9. sgl/include/sgl/app/app.h +113 -0
  10. sgl/include/sgl/core/bitmap.h +302 -0
  11. sgl/include/sgl/core/crypto.h +89 -0
  12. sgl/include/sgl/core/data_type.h +46 -0
  13. sgl/include/sgl/core/dds_file.h +103 -0
  14. sgl/include/sgl/core/enum.h +201 -0
  15. sgl/include/sgl/core/error.h +161 -0
  16. sgl/include/sgl/core/file_stream.h +77 -0
  17. sgl/include/sgl/core/file_system_watcher.h +141 -0
  18. sgl/include/sgl/core/format.h +36 -0
  19. sgl/include/sgl/core/fwd.h +90 -0
  20. sgl/include/sgl/core/hash.h +45 -0
  21. sgl/include/sgl/core/input.h +522 -0
  22. sgl/include/sgl/core/logger.h +214 -0
  23. sgl/include/sgl/core/macros.h +184 -0
  24. sgl/include/sgl/core/maths.h +45 -0
  25. sgl/include/sgl/core/memory_mapped_file.h +112 -0
  26. sgl/include/sgl/core/memory_mapped_file_stream.h +32 -0
  27. sgl/include/sgl/core/memory_stream.h +74 -0
  28. sgl/include/sgl/core/object.h +683 -0
  29. sgl/include/sgl/core/platform.h +239 -0
  30. sgl/include/sgl/core/plugin.h +331 -0
  31. sgl/include/sgl/core/resolver.h +39 -0
  32. sgl/include/sgl/core/short_vector.h +141 -0
  33. sgl/include/sgl/core/static_vector.h +111 -0
  34. sgl/include/sgl/core/stream.h +54 -0
  35. sgl/include/sgl/core/string.h +276 -0
  36. sgl/include/sgl/core/struct.h +360 -0
  37. sgl/include/sgl/core/thread.h +28 -0
  38. sgl/include/sgl/core/timer.h +52 -0
  39. sgl/include/sgl/core/traits.h +15 -0
  40. sgl/include/sgl/core/type_utils.h +19 -0
  41. sgl/include/sgl/core/window.h +177 -0
  42. sgl/include/sgl/device/agility_sdk.h +24 -0
  43. sgl/include/sgl/device/blit.h +88 -0
  44. sgl/include/sgl/device/buffer_cursor.h +162 -0
  45. sgl/include/sgl/device/command.h +539 -0
  46. sgl/include/sgl/device/cuda_api.h +766 -0
  47. sgl/include/sgl/device/cuda_interop.h +39 -0
  48. sgl/include/sgl/device/cuda_utils.h +107 -0
  49. sgl/include/sgl/device/cursor_utils.h +129 -0
  50. sgl/include/sgl/device/device.h +668 -0
  51. sgl/include/sgl/device/device_resource.h +37 -0
  52. sgl/include/sgl/device/fence.h +91 -0
  53. sgl/include/sgl/device/formats.h +330 -0
  54. sgl/include/sgl/device/framebuffer.h +85 -0
  55. sgl/include/sgl/device/fwd.h +164 -0
  56. sgl/include/sgl/device/helpers.h +20 -0
  57. sgl/include/sgl/device/hot_reload.h +75 -0
  58. sgl/include/sgl/device/input_layout.h +74 -0
  59. sgl/include/sgl/device/kernel.h +69 -0
  60. sgl/include/sgl/device/memory_heap.h +155 -0
  61. sgl/include/sgl/device/native_formats.h +342 -0
  62. sgl/include/sgl/device/native_handle.h +73 -0
  63. sgl/include/sgl/device/native_handle_traits.h +65 -0
  64. sgl/include/sgl/device/pipeline.h +138 -0
  65. sgl/include/sgl/device/print.h +45 -0
  66. sgl/include/sgl/device/python/cursor_utils.h +853 -0
  67. sgl/include/sgl/device/query.h +52 -0
  68. sgl/include/sgl/device/raytracing.h +84 -0
  69. sgl/include/sgl/device/reflection.h +1254 -0
  70. sgl/include/sgl/device/resource.h +705 -0
  71. sgl/include/sgl/device/sampler.h +57 -0
  72. sgl/include/sgl/device/shader.h +516 -0
  73. sgl/include/sgl/device/shader_cursor.h +85 -0
  74. sgl/include/sgl/device/shader_object.h +94 -0
  75. sgl/include/sgl/device/shader_offset.h +67 -0
  76. sgl/include/sgl/device/shared_handle.h +12 -0
  77. sgl/include/sgl/device/slang_utils.h +54 -0
  78. sgl/include/sgl/device/swapchain.h +74 -0
  79. sgl/include/sgl/device/types.h +782 -0
  80. sgl/include/sgl/math/colorspace.h +56 -0
  81. sgl/include/sgl/math/constants.h +7 -0
  82. sgl/include/sgl/math/float16.h +146 -0
  83. sgl/include/sgl/math/matrix.h +6 -0
  84. sgl/include/sgl/math/matrix_math.h +746 -0
  85. sgl/include/sgl/math/matrix_types.h +207 -0
  86. sgl/include/sgl/math/python/primitivetype.h +33 -0
  87. sgl/include/sgl/math/quaternion.h +6 -0
  88. sgl/include/sgl/math/quaternion_math.h +484 -0
  89. sgl/include/sgl/math/quaternion_types.h +83 -0
  90. sgl/include/sgl/math/ray.h +47 -0
  91. sgl/include/sgl/math/scalar_math.h +249 -0
  92. sgl/include/sgl/math/scalar_types.h +107 -0
  93. sgl/include/sgl/math/vector.h +6 -0
  94. sgl/include/sgl/math/vector_math.h +1796 -0
  95. sgl/include/sgl/math/vector_types.h +336 -0
  96. sgl/include/sgl/python/nanobind.h +489 -0
  97. sgl/include/sgl/python/py_doc.h +11600 -0
  98. sgl/include/sgl/python/sgl_ext_pch.h +8 -0
  99. sgl/include/sgl/sgl.h +21 -0
  100. sgl/include/sgl/sgl_pch.h +6 -0
  101. sgl/include/sgl/stl/bit.h +377 -0
  102. sgl/include/sgl/tests/testing.h +54 -0
  103. sgl/include/sgl/ui/fwd.h +34 -0
  104. sgl/include/sgl/ui/imgui_config.h +43 -0
  105. sgl/include/sgl/ui/ui.h +71 -0
  106. sgl/include/sgl/ui/widgets.h +918 -0
  107. sgl/include/sgl/utils/python/slangpy.h +366 -0
  108. sgl/include/sgl/utils/renderdoc.h +50 -0
  109. sgl/include/sgl/utils/slangpy.h +153 -0
  110. sgl/include/sgl/utils/tev.h +93 -0
  111. sgl/include/sgl/utils/texture_loader.h +106 -0
  112. sgl/libgfx.so +0 -0
  113. sgl/libsgl.so +0 -0
  114. sgl/libslang-glslang.so +0 -0
  115. sgl/libslang.so +0 -0
  116. sgl/libtevclient.a +0 -0
  117. sgl/math/__init__.pyi +5083 -0
  118. sgl/platform/__init__.pyi +102 -0
  119. sgl/renderdoc/__init__.pyi +51 -0
  120. sgl/sgl_ext.cpython-313-x86_64-linux-gnu.so +0 -0
  121. sgl/shaders/sgl/device/blit.slang +93 -0
  122. sgl/shaders/sgl/device/nvapi.slang +5 -0
  123. sgl/shaders/sgl/device/nvapi.slangh +7 -0
  124. sgl/shaders/sgl/device/print.slang +445 -0
  125. sgl/shaders/sgl/math/constants.slang +4 -0
  126. sgl/shaders/sgl/math/ray.slang +29 -0
  127. sgl/shaders/sgl/ui/imgui.slang +49 -0
  128. sgl/slangpy/__init__.pyi +268 -0
  129. sgl/tev/__init__.pyi +108 -0
  130. sgl/thread/__init__.pyi +4 -0
  131. sgl/ui/__init__.pyi +1118 -0
  132. share/cmake/tevclient/tevclient-config-release.cmake +19 -0
  133. share/cmake/tevclient/tevclient-config.cmake +103 -0
@@ -0,0 +1,52 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+
3
+ #pragma once
4
+
5
+ #include "sgl/device/fwd.h"
6
+ #include "sgl/device/types.h"
7
+ #include "sgl/device/device_resource.h"
8
+
9
+ #include "sgl/core/macros.h"
10
+ #include "sgl/core/object.h"
11
+ #include "sgl/core/enum.h"
12
+
13
+ #include <slang-gfx.h>
14
+
15
+ #include <span>
16
+
17
+ namespace sgl {
18
+
19
+ struct QueryPoolDesc {
20
+ /// Query type.
21
+ QueryType type;
22
+ /// Number of queries in the pool.
23
+ uint32_t count;
24
+ };
25
+
26
+ class SGL_API QueryPool : public DeviceResource {
27
+ SGL_OBJECT(QueryPool)
28
+ public:
29
+ QueryPool(ref<Device> device, QueryPoolDesc desc);
30
+
31
+ const QueryPoolDesc& desc() const { return m_desc; }
32
+
33
+ void reset();
34
+
35
+ void get_results(uint32_t index, uint32_t count, std::span<uint64_t> result);
36
+ std::vector<uint64_t> get_results(uint32_t index, uint32_t count);
37
+ uint64_t get_result(uint32_t index);
38
+
39
+ void get_timestamp_results(uint32_t index, uint32_t count, std::span<double> result);
40
+ std::vector<double> get_timestamp_results(uint32_t index, uint32_t count);
41
+ double get_timestamp_result(uint32_t index);
42
+
43
+ gfx::IQueryPool* gfx_query_pool() const { return m_gfx_query_pool; }
44
+
45
+ std::string to_string() const override;
46
+
47
+ private:
48
+ QueryPoolDesc m_desc;
49
+ Slang::ComPtr<gfx::IQueryPool> m_gfx_query_pool;
50
+ };
51
+
52
+ } // namespace sgl
@@ -0,0 +1,84 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+
3
+ #pragma once
4
+
5
+ #include "sgl/device/fwd.h"
6
+ #include "sgl/device/types.h"
7
+ #include "sgl/device/device_resource.h"
8
+ #include "sgl/device/resource.h"
9
+
10
+ #include "sgl/math/vector_types.h"
11
+ #include "sgl/math/matrix_types.h"
12
+
13
+ #include "sgl/core/macros.h"
14
+ #include "sgl/core/object.h"
15
+ #include "sgl/core/enum.h"
16
+
17
+ #include <slang-gfx.h>
18
+
19
+ namespace sgl {
20
+
21
+ struct AccelerationStructureQueryDesc {
22
+ QueryType query_type;
23
+ QueryPool* query_pool;
24
+ uint32_t first_query_index;
25
+ };
26
+
27
+ struct AccelerationStructureBuildDesc {
28
+ AccelerationStructureBuildInputs inputs;
29
+ AccelerationStructure* src;
30
+ AccelerationStructure* dst;
31
+ DeviceAddress scratch_data;
32
+ };
33
+
34
+ struct AccelerationStructureDesc {
35
+ AccelerationStructureKind kind;
36
+ ref<Buffer> buffer;
37
+ DeviceOffset offset{0};
38
+ DeviceSize size{0};
39
+ };
40
+
41
+ class SGL_API AccelerationStructure : public DeviceResource {
42
+ SGL_OBJECT(AccelerationStructure)
43
+ public:
44
+ AccelerationStructure(ref<Device> device, AccelerationStructureDesc desc);
45
+ ~AccelerationStructure();
46
+
47
+ const AccelerationStructureDesc& desc() const { return m_desc; }
48
+
49
+ AccelerationStructureKind kind() const { return m_desc.kind; }
50
+
51
+ DeviceAddress device_address() const;
52
+
53
+ gfx::IAccelerationStructure* gfx_acceleration_structure() const { return m_gfx_acceleration_structure; }
54
+
55
+ std::string to_string() const override;
56
+
57
+ private:
58
+ AccelerationStructureDesc m_desc;
59
+ Slang::ComPtr<gfx::IAccelerationStructure> m_gfx_acceleration_structure;
60
+ };
61
+
62
+ struct ShaderTableDesc {
63
+ ref<ShaderProgram> program;
64
+ std::vector<std::string> ray_gen_entry_points;
65
+ std::vector<std::string> miss_entry_points;
66
+ std::vector<std::string> hit_group_names;
67
+ std::vector<std::string> callable_entry_points;
68
+ };
69
+
70
+ class SGL_API ShaderTable : public DeviceResource {
71
+ SGL_OBJECT(ShaderTable)
72
+ public:
73
+ ShaderTable(ref<Device> device, ShaderTableDesc desc);
74
+ ~ShaderTable();
75
+
76
+ gfx::IShaderTable* gfx_shader_table() const { return m_gfx_shader_table; }
77
+
78
+ std::string to_string() const override;
79
+
80
+ private:
81
+ Slang::ComPtr<gfx::IShaderTable> m_gfx_shader_table;
82
+ };
83
+
84
+ } // namespace sgl