目次
-
SDL 3.0 API(機能別)
-
3DレンダリングとGPUコンピューティング
- SDL_GPUVertexAttribute
SDL_GPUVertexAttribute
頂点の属性の構造体
ヘッダ
SDL3/SDL_gpu.h
フィールド
Uint32
location
シェーダの入力位置のインデックス
Uint32
buffer_slot
バインド対象の頂点バッファのスロット
SDL_GPUVertexElementFormat
format
属性データのサイズと型
Uint32
offset
頂点の先頭からの属性のオフセットバイト数
詳細
SDL_GPUVertexInputState
に渡される全ての頂点の属性の位置はユニークである必要がある.
バージョン
SDL 3.2.0以降
関連項目
SDL_GPUVertexBufferDescription
SDL_GPUVertexInputState
SDL_GPUVertexElementFormat
SDL Wikiへのリンク
SDL_GPUVertexAttribute - SDL Wiki