@@ -111,6 +111,23 @@ API_EXPORT uint8_t orgeUpdateBufferDescriptor(
111111 uint32_t offset
112112);
113113
114+ /// バッファディスクリプタを更新する関数 (コンピュートパイプライン)
115+ ///
116+ /// - pipelineId: パイプラインID
117+ /// - id: バッファID
118+ /// - set: ディスクリプタセット番号
119+ /// - index: 何個目のディスクリプタセットか
120+ /// - binding: バインディング番号
121+ /// - offset: 配列上のオフセット (ディスクリプタが配列でないなら0)
122+ API_EXPORT uint8_t orgeUpdateComputeBufferDescriptor (
123+ const char * pipelineId ,
124+ const char * id ,
125+ uint32_t set ,
126+ uint32_t index ,
127+ uint32_t binding ,
128+ uint32_t offset
129+ );
130+
114131/// orgeにイメージを追加する関数
115132///
116133/// - file: アセットファイル名
@@ -138,6 +155,23 @@ API_EXPORT uint8_t orgeUpdateImageDescriptor(
138155 uint32_t offset
139156);
140157
158+ /// イメージディスクリプタを更新する関数 (コンピュートパイプライン)
159+ ///
160+ /// - pipelineId: パイプラインID
161+ /// - id: イメージID (アセットファイル名)
162+ /// - set: ディスクリプタセット番号
163+ /// - index: 何個目のディスクリプタセットか
164+ /// - binding: バインディング番号
165+ /// - offset: 配列上のオフセット (ディスクリプタが配列でないなら0)
166+ API_EXPORT uint8_t orgeUpdateComputeImageDescriptor (
167+ const char * pipelineId ,
168+ const char * id ,
169+ uint32_t set ,
170+ uint32_t index ,
171+ uint32_t binding ,
172+ uint32_t offset
173+ );
174+
141175/// orgeにサンプラを追加する関数
142176///
143177/// - id: サンプラID
@@ -174,6 +208,23 @@ API_EXPORT uint8_t orgeUpdateSamplerDescriptor(
174208 uint32_t offset
175209);
176210
211+ /// サンプラディスクリプタを更新する関数 (コンピュート)
212+ ///
213+ /// - pipelineId: パイプラインID
214+ /// - id: サンプラID
215+ /// - set: ディスクリプタセット番号
216+ /// - index: 何個目のディスクリプタセットか
217+ /// - binding: バインディング番号
218+ /// - offset: 配列上のオフセット (ディスクリプタが配列でないなら0)
219+ API_EXPORT uint8_t orgeUpdateComputeSamplerDescriptor (
220+ const char * pipelineId ,
221+ const char * id ,
222+ uint32_t set ,
223+ uint32_t index ,
224+ uint32_t binding ,
225+ uint32_t offset
226+ );
227+
177228/// アタッチメントディスクリプタを更新する関数
178229///
179230/// - renderPassId: レンダーパスID
@@ -330,6 +381,21 @@ API_EXPORT uint8_t orgeDraw(uint32_t instanceCount, uint32_t instanceOffset);
330381/// WARN: パイプラインがバインドされていること。
331382API_EXPORT uint8_t orgeDrawDirectly (uint32_t vertexCount , uint32_t instanceCount , uint32_t instanceOffset );
332383
384+ // ================================================================================================================== //
385+ // Compute //
386+ // ================================================================================================================== //
387+
388+ /// コンピュートパイプラインをバインドする関数
389+ ///
390+ /// WARN: 描画が開始されていること。
391+ /// WARN: レンダーパスがバインドされていないこと。
392+ uint8_t orgeBindComputePipeline (const char * pipelineId , uint32_t const * indices );
393+
394+ /// コンピュートパイプラインを実行する関数
395+ ///
396+ /// WARN: パイプラインがバインドされていること。
397+ uint8_t orgeDispatch (uint32_t x , uint32_t y , uint32_t z );
398+
333399// ================================================================================================================== //
334400// Input //
335401// ================================================================================================================== //
0 commit comments