Skip to main content

ILampArray::GetIndicesForPurposes

以支援指定 LampPurposes 集合的 Lamp 索引填入緩衝區。呼叫此方法之前,應先呼叫 ILampArray::GetIndicesCountForPurposes 取得最大緩衝區大小。

語法

參數

lampPurposes 類型:LampPurposes 所需的 LampPurposes 集合。 lampIndicesCount
類型:uint32_t
要填入的緩衝區大小。 lampIndices  _Out_writes_(lampIndicesCount) 類型:uint32_t* Lamp 索引緩衝區。寫入緩衝區的索引屬於符合 lampPurposes 中所有旗標的 Lamp。

傳回值

類型:void

備註

下列程式碼示範如何為 ILampArray 上的所有品牌標示 Lamp 設定色彩:

需求

標頭: LampArray.h 程式庫: xgameplatform.lib 支援的平台: XBOX One 系列主機和 XBOX Series 主機

另請參閱

照明 API 概觀
ILampArray::GetIndicesCountForPurposes
ILampArray::SetColorsForIndices
ILampArray
Last modified on October 6, 2026