ภาพรวม
คุณสามารถใช้ฟังก์ชันด้านล่างเพื่อรับและตั้งค่าเซลล์ที่ประกอบกันเป็นการแบ่ง
- เข้าถึงเซลล์แต่ละเซลล์ได้โดยใช้ฟังก์ชัน rsGetElementAt* และ rsSetElementAt
- คุณสามารถคัดลอกหลายเซลล์ได้โดยใช้ฟังก์ชัน rsAllocationCopy* และ rsAllocationV*
- หากต้องการรับค่าผ่านเครื่องมือสุ่มตัวอย่าง ให้ใช้ rsSample
สรุป
ฟังก์ชัน | |
---|---|
rsAllocationCopy1DRange | คัดลอกเซลล์ติดต่อกันระหว่างการกําหนด |
rsAllocationCopy2DRange | คัดลอกพื้นที่สี่เหลี่ยมผืนผ้าของเซลล์ระหว่างการจัดสรร |
rsAllocationVLoadX | รับเวกเตอร์จากการจัดสรรสเกลาร์ |
rsAllocationVStoreX | จัดเก็บเวกเตอร์ลงในการจัดสรรสเกลาร์ |
rsGetElementAt | แสดงผลเซลล์จากการแบ่งสรร |
rsGetElementAtYuv_uchar_U | รับองค์ประกอบ U ของการจัดสรร YUV |
rsGetElementAtYuv_uchar_V | รับองค์ประกอบ V ของการจัดสรร YUV |
rsGetElementAtYuv_uchar_Y | รับองค์ประกอบ Y ของการจัดสรร YUV |
rsSample | ตัวอย่างค่าจากการกําหนดค่าพื้นผิว |
rsSetElementAt | ตั้งค่าเซลล์ของการแบ่งสรร |
ฟังก์ชัน
rsAllocationCopy1DRange : คัดลอกเซลล์ที่อยู่ติดกันระหว่างการจัดสรร
void rsAllocationCopy1DRange(rs_allocation dstAlloc, uint32_t dstOff, uint32_t dstMip, uint32_t count, rs_allocation srcAlloc, uint32_t srcOff, uint32_t srcMip); | เพิ่มใน API ระดับ 14 |
พารามิเตอร์
dstAlloc | การจัดสรรเพื่อคัดลอกเซลล์ |
---|---|
dstOff | ส่วนเพิ่มในปลายทางของเซลล์แรกที่จะใช้คัดลอกข้อมูลไป |
dstMip | ระดับ MIP ในการกําหนดเป้าหมายปลายทาง 0 หากไม่ได้ใช้ MIP Mapping |
จำนวน | จำนวนเซลล์ที่จะคัดลอก |
srcAlloc | การจัดสรรแหล่งที่มา |
srcOff | ส่วนเพิ่มในแหล่งที่มาของเซลล์แรกที่จะคัดลอก |
srcMip | ระดับ MIP ในการกําหนดแหล่งที่มา 0 หากไม่ได้ใช้ MIP Mapping |
คัดลอกเซลล์ตามจำนวนที่ระบุจากการจัดสรรหนึ่งไปยังอีกการจัดสรรหนึ่ง
การจัดสรรทั้ง 2 รายการต้องไม่เหมือนกัน การใช้ฟังก์ชันนี้เพื่อคัดลอกภายในการจัดสรรเดียวกันจะให้ผลลัพธ์ที่ไม่ระบุ
ฟังก์ชันจะไม่ตรวจสอบว่าออฟเซตบวกจํานวนเกินขนาดของการจัดสรรหรือไม่ โปรดระวัง!
ฟังก์ชันนี้ควรเรียกใช้ระหว่างการจัดสรร 1 มิติเท่านั้น การเรียกใช้
ไม่ควรเรียกใช้ฟังก์ชันนี้จากภายในเคอร์เนล หรือจากฟังก์ชันใดๆ ที่อาจเรียกใช้จากเคอร์เนลโดยตรงหรือโดยอ้อม เนื่องจากจะทำให้เกิดข้อผิดพลาดรันไทม์
rsAllocationCopy2DRange : คัดลอกพื้นที่สี่เหลี่ยมผืนผ้าของเซลล์ระหว่างการจัดสรร
void rsAllocationCopy2DRange(rs_allocation dstAlloc, uint32_t dstXoff, uint32_t dstYoff, uint32_t dstMip, rs_allocation_cubemap_face dstFace, uint32_t width, uint32_t height, rs_allocation srcAlloc, uint32_t srcXoff, uint32_t srcYoff, uint32_t srcMip, rs_allocation_cubemap_face srcFace); | เพิ่มใน API ระดับ 14 |
พารามิเตอร์
dstAlloc | การจัดสรรเพื่อคัดลอกเซลล์ |
---|---|
dstXoff | การเลื่อน X ในปลายทางของภูมิภาคที่จะตั้งค่า |
dstYoff | ออฟเซ็ต Y ในปลายทางของภูมิภาคที่จะตั้งค่า |
dstMip | ระดับ MIP ในการกําหนดเป้าหมายปลายทาง 0 หากไม่ได้ใช้ MIP Mapping |
dstFace | ใบหน้าของภาพลูกบาศก์ของการจัดสรรปลายทาง ละเว้นสำหรับการจัดสรรที่ไม่ใช่คิวบิกแมป |
width | ความกว้างของภูมิภาคขาเข้าที่จะอัปเดต |
ส่วนสูง | ความสูงของภูมิภาคขาเข้าที่จะอัปเดต |
srcAlloc | การจัดสรรแหล่งที่มา |
srcXoff | ระยะห่างแนวนอนในแหล่งที่มา |
srcYoff | ระยะห่างแนวตั้งในแหล่งที่มา |
srcMip | ระดับ MIP ในการกําหนดแหล่งที่มา 0 หากไม่ได้ใช้ MIP Mapping |
srcFace | ใบหน้าคิวบ์แมปของการกําหนดแหล่งที่มา ละเว้นสำหรับการจัดสรรที่ไม่ใช่คิวบิกแมป |
คัดลอกพื้นที่สี่เหลี่ยมผืนผ้าของเซลล์จากการจัดสรรหนึ่งไปยังอีกการจัดสรรหนึ่ง ระบบจะคัดลอกเซลล์ (ความกว้าง * ความสูง)
การจัดสรรทั้ง 2 รายการต้องไม่เหมือนกัน การใช้ฟังก์ชันนี้เพื่อคัดลอกภายในการจัดสรรเดียวกันจะให้ผลลัพธ์ที่ไม่ระบุ
ฟังก์ชันจะไม่ตรวจสอบว่าภูมิภาคต้นทางหรือปลายทางมีขนาดใหญ่เกินกว่าการจัดสรรที่เกี่ยวข้องหรือไม่ โปรดระวัง!
ฟังก์ชันนี้ควรเรียกใช้ระหว่างการจัดสรร 2 มิติเท่านั้น การเรียกใช้
ไม่ควรเรียกใช้ฟังก์ชันนี้จากภายในเคอร์เนล หรือจากฟังก์ชันใดๆ ที่อาจเรียกใช้จากเคอร์เนลโดยตรงหรือโดยอ้อม เนื่องจากจะทำให้เกิดข้อผิดพลาดรันไทม์
rsAllocationVLoadX : รับเวกเตอร์จากการจองสเกลาร์
char2 rsAllocationVLoadX_char2(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
char2 rsAllocationVLoadX_char2(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
char2 rsAllocationVLoadX_char2(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
char3 rsAllocationVLoadX_char3(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
char3 rsAllocationVLoadX_char3(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
char3 rsAllocationVLoadX_char3(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
char4 rsAllocationVLoadX_char4(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
char4 rsAllocationVLoadX_char4(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
char4 rsAllocationVLoadX_char4(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
double2 rsAllocationVLoadX_double2(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
double2 rsAllocationVLoadX_double2(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
double2 rsAllocationVLoadX_double2(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
double3 rsAllocationVLoadX_double3(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
double3 rsAllocationVLoadX_double3(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
double3 rsAllocationVLoadX_double3(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
double4 rsAllocationVLoadX_double4(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
double4 rsAllocationVLoadX_double4(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
double4 rsAllocationVLoadX_double4(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
float2 rsAllocationVLoadX_float2(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
float2 rsAllocationVLoadX_float2(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
float2 rsAllocationVLoadX_float2(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
float3 rsAllocationVLoadX_float3(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
float3 rsAllocationVLoadX_float3(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
float3 rsAllocationVLoadX_float3(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
float4 rsAllocationVLoadX_float4(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
float4 rsAllocationVLoadX_float4(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
float4 rsAllocationVLoadX_float4(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
int2 rsAllocationVLoadX_int2(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
int2 rsAllocationVLoadX_int2(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
int2 rsAllocationVLoadX_int2(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
int3 rsAllocationVLoadX_int3(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
int3 rsAllocationVLoadX_int3(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
int3 rsAllocationVLoadX_int3(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
int4 rsAllocationVLoadX_int4(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
int4 rsAllocationVLoadX_int4(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
int4 rsAllocationVLoadX_int4(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
long2 rsAllocationVLoadX_long2(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
long2 rsAllocationVLoadX_long2(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
long2 rsAllocationVLoadX_long2(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
long3 rsAllocationVLoadX_long3(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
long3 rsAllocationVLoadX_long3(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
long3 rsAllocationVLoadX_long3(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
long4 rsAllocationVLoadX_long4(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
long4 rsAllocationVLoadX_long4(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
long4 rsAllocationVLoadX_long4(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
short2 rsAllocationVLoadX_short2(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
short2 rsAllocationVLoadX_short2(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
short2 rsAllocationVLoadX_short2(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
short3 rsAllocationVLoadX_short3(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
short3 rsAllocationVLoadX_short3(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
short3 rsAllocationVLoadX_short3(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
short4 rsAllocationVLoadX_short4(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
short4 rsAllocationVLoadX_short4(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
short4 rsAllocationVLoadX_short4(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
uchar2 rsAllocationVLoadX_uchar2(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
uchar2 rsAllocationVLoadX_uchar2(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
uchar2 rsAllocationVLoadX_uchar2(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
uchar3 rsAllocationVLoadX_uchar3(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
uchar3 rsAllocationVLoadX_uchar3(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
uchar3 rsAllocationVLoadX_uchar3(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
uchar4 rsAllocationVLoadX_uchar4(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
uchar4 rsAllocationVLoadX_uchar4(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
uchar4 rsAllocationVLoadX_uchar4(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
uint2 rsAllocationVLoadX_uint2(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
uint2 rsAllocationVLoadX_uint2(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
uint2 rsAllocationVLoadX_uint2(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
uint3 rsAllocationVLoadX_uint3(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
uint3 rsAllocationVLoadX_uint3(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
uint3 rsAllocationVLoadX_uint3(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
uint4 rsAllocationVLoadX_uint4(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
uint4 rsAllocationVLoadX_uint4(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
uint4 rsAllocationVLoadX_uint4(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
ulong2 rsAllocationVLoadX_ulong2(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
ulong2 rsAllocationVLoadX_ulong2(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
ulong2 rsAllocationVLoadX_ulong2(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
ulong3 rsAllocationVLoadX_ulong3(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
ulong3 rsAllocationVLoadX_ulong3(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
ulong3 rsAllocationVLoadX_ulong3(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
ulong4 rsAllocationVLoadX_ulong4(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
ulong4 rsAllocationVLoadX_ulong4(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
ulong4 rsAllocationVLoadX_ulong4(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
ushort2 rsAllocationVLoadX_ushort2(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
ushort2 rsAllocationVLoadX_ushort2(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
ushort2 rsAllocationVLoadX_ushort2(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
ushort3 rsAllocationVLoadX_ushort3(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
ushort3 rsAllocationVLoadX_ushort3(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
ushort3 rsAllocationVLoadX_ushort3(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
ushort4 rsAllocationVLoadX_ushort4(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 22 |
ushort4 rsAllocationVLoadX_ushort4(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
ushort4 rsAllocationVLoadX_ushort4(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
พารามิเตอร์
a | การจัดสรรที่จะดึงข้อมูล |
---|---|
x | การเลื่อน X ในการกําหนดเซลล์แรกที่จะคัดลอก |
y | การเลื่อน Y ในการกําหนดเซลล์แรกที่จะคัดลอก |
z | การเลื่อน Z ในการกําหนดเซลล์แรกที่จะคัดลอก |
ฟังก์ชันนี้จะแสดงผลเวกเตอร์ที่ประกอบด้วยเซลล์ตามลำดับของการแบ่ง โดยระบบจะถือว่าการกําหนดมีสเกลาร์
"X" ในชื่อบ่งบอกว่ามีการดึงค่าต่อเนื่องกันโดยเพิ่มดัชนี X ปัจจุบันยังไม่มีฟังก์ชันสําหรับรับค่าที่เพิ่มขึ้นตามลําดับซึ่งจะเพิ่มมิติข้อมูลอื่นๆ ให้ใช้การเรียก rsGetElementAt() หลายครั้งแทน
เช่น เมื่อเรียกใช้ rsAllocationVLoadX_int4(a, 20, 30) ระบบจะแสดงผล int4 ที่ประกอบด้วย a[20, 30], a[21, 30], a[22, 30] และ a[23, 30]
เมื่อดึงข้อมูลจากการจัดสรร 3 มิติ ให้ใช้ตัวแปร x, y, z ในทํานองเดียวกัน ให้ใช้ตัวแปร x, y สำหรับการกําหนดค่า 2 มิติ และ x สำหรับการกําหนดค่ามิติเดียว
ฟังก์ชันนี้จะไม่ตรวจสอบอินพุตเพื่อความมีประสิทธิภาพ การพยายามตัดดัชนี X ให้สั้นลง เกินขนาดของการกําหนด หรือใช้ดัชนีที่เข้ากันไม่ได้กับมิติข้อมูลของการกําหนดจะให้ผลลัพธ์ที่ไม่ระบุ
ดูrsAllocationVStoreX() เพิ่มเติม
rsAllocationVStoreX : จัดเก็บเวกเตอร์ลงในการจัดสรรสเกลาร์
void rsAllocationVStoreX_char2(rs_allocation a, char2 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_char2(rs_allocation a, char2 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_char2(rs_allocation a, char2 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_char3(rs_allocation a, char3 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_char3(rs_allocation a, char3 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_char3(rs_allocation a, char3 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_char4(rs_allocation a, char4 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_char4(rs_allocation a, char4 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_char4(rs_allocation a, char4 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_double2(rs_allocation a, double2 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_double2(rs_allocation a, double2 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_double2(rs_allocation a, double2 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_double3(rs_allocation a, double3 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_double3(rs_allocation a, double3 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_double3(rs_allocation a, double3 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_double4(rs_allocation a, double4 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_double4(rs_allocation a, double4 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_double4(rs_allocation a, double4 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_float2(rs_allocation a, float2 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_float2(rs_allocation a, float2 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_float2(rs_allocation a, float2 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_float3(rs_allocation a, float3 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_float3(rs_allocation a, float3 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_float3(rs_allocation a, float3 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_float4(rs_allocation a, float4 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_float4(rs_allocation a, float4 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_float4(rs_allocation a, float4 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_int2(rs_allocation a, int2 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_int2(rs_allocation a, int2 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_int2(rs_allocation a, int2 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_int3(rs_allocation a, int3 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_int3(rs_allocation a, int3 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_int3(rs_allocation a, int3 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_int4(rs_allocation a, int4 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_int4(rs_allocation a, int4 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_int4(rs_allocation a, int4 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_long2(rs_allocation a, long2 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_long2(rs_allocation a, long2 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_long2(rs_allocation a, long2 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_long3(rs_allocation a, long3 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_long3(rs_allocation a, long3 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_long3(rs_allocation a, long3 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_long4(rs_allocation a, long4 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_long4(rs_allocation a, long4 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_long4(rs_allocation a, long4 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_short2(rs_allocation a, short2 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_short2(rs_allocation a, short2 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_short2(rs_allocation a, short2 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_short3(rs_allocation a, short3 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_short3(rs_allocation a, short3 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_short3(rs_allocation a, short3 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_short4(rs_allocation a, short4 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_short4(rs_allocation a, short4 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_short4(rs_allocation a, short4 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_uchar2(rs_allocation a, uchar2 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_uchar2(rs_allocation a, uchar2 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_uchar2(rs_allocation a, uchar2 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_uchar3(rs_allocation a, uchar3 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_uchar3(rs_allocation a, uchar3 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_uchar3(rs_allocation a, uchar3 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_uchar4(rs_allocation a, uchar4 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_uchar4(rs_allocation a, uchar4 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_uchar4(rs_allocation a, uchar4 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_uint2(rs_allocation a, uint2 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_uint2(rs_allocation a, uint2 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_uint2(rs_allocation a, uint2 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_uint3(rs_allocation a, uint3 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_uint3(rs_allocation a, uint3 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_uint3(rs_allocation a, uint3 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_uint4(rs_allocation a, uint4 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_uint4(rs_allocation a, uint4 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_uint4(rs_allocation a, uint4 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_ulong2(rs_allocation a, ulong2 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_ulong2(rs_allocation a, ulong2 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_ulong2(rs_allocation a, ulong2 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_ulong3(rs_allocation a, ulong3 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_ulong3(rs_allocation a, ulong3 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_ulong3(rs_allocation a, ulong3 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_ulong4(rs_allocation a, ulong4 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_ulong4(rs_allocation a, ulong4 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_ulong4(rs_allocation a, ulong4 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_ushort2(rs_allocation a, ushort2 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_ushort2(rs_allocation a, ushort2 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_ushort2(rs_allocation a, ushort2 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_ushort3(rs_allocation a, ushort3 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_ushort3(rs_allocation a, ushort3 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_ushort3(rs_allocation a, ushort3 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_ushort4(rs_allocation a, ushort4 val, uint32_t x); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_ushort4(rs_allocation a, ushort4 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 22 |
void rsAllocationVStoreX_ushort4(rs_allocation a, ushort4 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 22 |
พารามิเตอร์
a | การจัดสรรเพื่อจัดเก็บข้อมูล |
---|---|
val | ค่าที่จะจัดเก็บ |
x | การเลื่อน X ในการกําหนดเซลล์แรกที่จะใช้คัดลอกข้อมูลไป |
y | การเลื่อน Y ในการกําหนดเซลล์แรกที่จะคัดลอกข้อมูลเข้าไป |
z | การเลื่อน Z ในการกําหนดเซลล์แรกที่จะคัดลอกข้อมูลเข้าไป |
ฟังก์ชันนี้จะจัดเก็บรายการของเวกเตอร์ไว้ในเซลล์ต่อเนื่องกันของการจัดสรร โดยระบบจะถือว่าการกําหนดมีสเกลาร์
"X" ในชื่อบ่งบอกว่าระบบจะจัดเก็บค่าที่ต่อเนื่องกันโดยเพิ่มดัชนี X ปัจจุบันยังไม่มีฟังก์ชันสำหรับจัดเก็บค่าที่เพิ่มขึ้นอย่างต่อเนื่องเพื่อเพิ่มมิติข้อมูลอื่นๆ ใช้การเรียก rsSetElementAt() หลายครั้งแทน
ตัวอย่างเช่น เมื่อเรียกใช้ rsAllocationVStoreX_int3(a, v, 20, 30) ระบบจะจัดเก็บ v.x ที่ a[20, 30], v.y ที่ a[21, 30] และ v.z ที่ a[22, 30]
เมื่อจัดเก็บข้อมูลลงในการจัดสรร 3 มิติ ให้ใช้ตัวแปร x, y, z ในทํานองเดียวกัน ให้ใช้ตัวแปร x, y สำหรับการกําหนดค่า 2 มิติ และ x สำหรับการกําหนดค่ามิติเดียว
ฟังก์ชันนี้จะไม่ตรวจสอบอินพุตเพื่อความมีประสิทธิภาพ การพยายามตัดตอนดัชนี X เกินขนาดของการจัดสรร หรือการใช้ดัชนีที่เข้ากันไม่ได้กับมิติข้อมูลของการจัดสรรจะให้ผลลัพธ์ที่ไม่ระบุ
โปรดดู rsAllocationVLoadX() ด้วย
rsGetElementAt : แสดงผลเซลล์จากการแบ่งสรร
char rsGetElementAt_char(rs_allocation a, uint32_t x); | |
char rsGetElementAt_char(rs_allocation a, uint32_t x, uint32_t y); | |
char rsGetElementAt_char(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
char2 rsGetElementAt_char2(rs_allocation a, uint32_t x); | |
char2 rsGetElementAt_char2(rs_allocation a, uint32_t x, uint32_t y); | |
char2 rsGetElementAt_char2(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
char3 rsGetElementAt_char3(rs_allocation a, uint32_t x); | |
char3 rsGetElementAt_char3(rs_allocation a, uint32_t x, uint32_t y); | |
char3 rsGetElementAt_char3(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
char4 rsGetElementAt_char4(rs_allocation a, uint32_t x); | |
char4 rsGetElementAt_char4(rs_allocation a, uint32_t x, uint32_t y); | |
char4 rsGetElementAt_char4(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
const void* rsGetElementAt(rs_allocation a, uint32_t x); | |
const void* rsGetElementAt(rs_allocation a, uint32_t x, uint32_t y); | |
const void* rsGetElementAt(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
double rsGetElementAt_double(rs_allocation a, uint32_t x); | |
double rsGetElementAt_double(rs_allocation a, uint32_t x, uint32_t y); | |
double rsGetElementAt_double(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
double2 rsGetElementAt_double2(rs_allocation a, uint32_t x); | |
double2 rsGetElementAt_double2(rs_allocation a, uint32_t x, uint32_t y); | |
double2 rsGetElementAt_double2(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
double3 rsGetElementAt_double3(rs_allocation a, uint32_t x); | |
double3 rsGetElementAt_double3(rs_allocation a, uint32_t x, uint32_t y); | |
double3 rsGetElementAt_double3(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
double4 rsGetElementAt_double4(rs_allocation a, uint32_t x); | |
double4 rsGetElementAt_double4(rs_allocation a, uint32_t x, uint32_t y); | |
double4 rsGetElementAt_double4(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
float rsGetElementAt_float(rs_allocation a, uint32_t x); | |
float rsGetElementAt_float(rs_allocation a, uint32_t x, uint32_t y); | |
float rsGetElementAt_float(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
float2 rsGetElementAt_float2(rs_allocation a, uint32_t x); | |
float2 rsGetElementAt_float2(rs_allocation a, uint32_t x, uint32_t y); | |
float2 rsGetElementAt_float2(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
float3 rsGetElementAt_float3(rs_allocation a, uint32_t x); | |
float3 rsGetElementAt_float3(rs_allocation a, uint32_t x, uint32_t y); | |
float3 rsGetElementAt_float3(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
float4 rsGetElementAt_float4(rs_allocation a, uint32_t x); | |
float4 rsGetElementAt_float4(rs_allocation a, uint32_t x, uint32_t y); | |
float4 rsGetElementAt_float4(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
half rsGetElementAt_half(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 23 |
half rsGetElementAt_half(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 23 |
half rsGetElementAt_half(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 23 |
half2 rsGetElementAt_half2(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 23 |
half2 rsGetElementAt_half2(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 23 |
half2 rsGetElementAt_half2(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 23 |
half3 rsGetElementAt_half3(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 23 |
half3 rsGetElementAt_half3(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 23 |
half3 rsGetElementAt_half3(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 23 |
half4 rsGetElementAt_half4(rs_allocation a, uint32_t x); | เพิ่มใน API ระดับ 23 |
half4 rsGetElementAt_half4(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 23 |
half4 rsGetElementAt_half4(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 23 |
int rsGetElementAt_int(rs_allocation a, uint32_t x); | |
int rsGetElementAt_int(rs_allocation a, uint32_t x, uint32_t y); | |
int rsGetElementAt_int(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
int2 rsGetElementAt_int2(rs_allocation a, uint32_t x); | |
int2 rsGetElementAt_int2(rs_allocation a, uint32_t x, uint32_t y); | |
int2 rsGetElementAt_int2(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
int3 rsGetElementAt_int3(rs_allocation a, uint32_t x); | |
int3 rsGetElementAt_int3(rs_allocation a, uint32_t x, uint32_t y); | |
int3 rsGetElementAt_int3(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
int4 rsGetElementAt_int4(rs_allocation a, uint32_t x); | |
int4 rsGetElementAt_int4(rs_allocation a, uint32_t x, uint32_t y); | |
int4 rsGetElementAt_int4(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
long rsGetElementAt_long(rs_allocation a, uint32_t x); | |
long rsGetElementAt_long(rs_allocation a, uint32_t x, uint32_t y); | |
long rsGetElementAt_long(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
long2 rsGetElementAt_long2(rs_allocation a, uint32_t x); | |
long2 rsGetElementAt_long2(rs_allocation a, uint32_t x, uint32_t y); | |
long2 rsGetElementAt_long2(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
long3 rsGetElementAt_long3(rs_allocation a, uint32_t x); | |
long3 rsGetElementAt_long3(rs_allocation a, uint32_t x, uint32_t y); | |
long3 rsGetElementAt_long3(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
long4 rsGetElementAt_long4(rs_allocation a, uint32_t x); | |
long4 rsGetElementAt_long4(rs_allocation a, uint32_t x, uint32_t y); | |
long4 rsGetElementAt_long4(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
short rsGetElementAt_short(rs_allocation a, uint32_t x); | |
short rsGetElementAt_short(rs_allocation a, uint32_t x, uint32_t y); | |
short rsGetElementAt_short(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
short2 rsGetElementAt_short2(rs_allocation a, uint32_t x); | |
short2 rsGetElementAt_short2(rs_allocation a, uint32_t x, uint32_t y); | |
short2 rsGetElementAt_short2(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
short3 rsGetElementAt_short3(rs_allocation a, uint32_t x); | |
short3 rsGetElementAt_short3(rs_allocation a, uint32_t x, uint32_t y); | |
short3 rsGetElementAt_short3(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
short4 rsGetElementAt_short4(rs_allocation a, uint32_t x); | |
short4 rsGetElementAt_short4(rs_allocation a, uint32_t x, uint32_t y); | |
short4 rsGetElementAt_short4(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
uchar rsGetElementAt_uchar(rs_allocation a, uint32_t x); | |
uchar rsGetElementAt_uchar(rs_allocation a, uint32_t x, uint32_t y); | |
uchar rsGetElementAt_uchar(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
uchar2 rsGetElementAt_uchar2(rs_allocation a, uint32_t x); | |
uchar2 rsGetElementAt_uchar2(rs_allocation a, uint32_t x, uint32_t y); | |
uchar2 rsGetElementAt_uchar2(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
uchar3 rsGetElementAt_uchar3(rs_allocation a, uint32_t x); | |
uchar3 rsGetElementAt_uchar3(rs_allocation a, uint32_t x, uint32_t y); | |
uchar3 rsGetElementAt_uchar3(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
uchar4 rsGetElementAt_uchar4(rs_allocation a, uint32_t x); | |
uchar4 rsGetElementAt_uchar4(rs_allocation a, uint32_t x, uint32_t y); | |
uchar4 rsGetElementAt_uchar4(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
uint rsGetElementAt_uint(rs_allocation a, uint32_t x); | |
uint rsGetElementAt_uint(rs_allocation a, uint32_t x, uint32_t y); | |
uint rsGetElementAt_uint(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
uint2 rsGetElementAt_uint2(rs_allocation a, uint32_t x); | |
uint2 rsGetElementAt_uint2(rs_allocation a, uint32_t x, uint32_t y); | |
uint2 rsGetElementAt_uint2(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
uint3 rsGetElementAt_uint3(rs_allocation a, uint32_t x); | |
uint3 rsGetElementAt_uint3(rs_allocation a, uint32_t x, uint32_t y); | |
uint3 rsGetElementAt_uint3(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
uint4 rsGetElementAt_uint4(rs_allocation a, uint32_t x); | |
uint4 rsGetElementAt_uint4(rs_allocation a, uint32_t x, uint32_t y); | |
uint4 rsGetElementAt_uint4(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
ulong rsGetElementAt_ulong(rs_allocation a, uint32_t x); | |
ulong rsGetElementAt_ulong(rs_allocation a, uint32_t x, uint32_t y); | |
ulong rsGetElementAt_ulong(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
ulong2 rsGetElementAt_ulong2(rs_allocation a, uint32_t x); | |
ulong2 rsGetElementAt_ulong2(rs_allocation a, uint32_t x, uint32_t y); | |
ulong2 rsGetElementAt_ulong2(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
ulong3 rsGetElementAt_ulong3(rs_allocation a, uint32_t x); | |
ulong3 rsGetElementAt_ulong3(rs_allocation a, uint32_t x, uint32_t y); | |
ulong3 rsGetElementAt_ulong3(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
ulong4 rsGetElementAt_ulong4(rs_allocation a, uint32_t x); | |
ulong4 rsGetElementAt_ulong4(rs_allocation a, uint32_t x, uint32_t y); | |
ulong4 rsGetElementAt_ulong4(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
ushort rsGetElementAt_ushort(rs_allocation a, uint32_t x); | |
ushort rsGetElementAt_ushort(rs_allocation a, uint32_t x, uint32_t y); | |
ushort rsGetElementAt_ushort(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
ushort2 rsGetElementAt_ushort2(rs_allocation a, uint32_t x); | |
ushort2 rsGetElementAt_ushort2(rs_allocation a, uint32_t x, uint32_t y); | |
ushort2 rsGetElementAt_ushort2(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
ushort3 rsGetElementAt_ushort3(rs_allocation a, uint32_t x); | |
ushort3 rsGetElementAt_ushort3(rs_allocation a, uint32_t x, uint32_t y); | |
ushort3 rsGetElementAt_ushort3(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); | |
ushort4 rsGetElementAt_ushort4(rs_allocation a, uint32_t x); | |
ushort4 rsGetElementAt_ushort4(rs_allocation a, uint32_t x, uint32_t y); | |
ushort4 rsGetElementAt_ushort4(rs_allocation a, uint32_t x, uint32_t y, uint32_t z); |
ฟังก์ชันนี้จะดึงข้อมูลเซลล์เดียวออกจากการแบ่งสรร
เมื่อดึงข้อมูลจากการจัดสรร 3 มิติ ให้ใช้ตัวแปร x, y, z ในทํานองเดียวกัน ให้ใช้ตัวแปร x, y สำหรับการกําหนดค่า 2 มิติ และ x สำหรับการกําหนดค่ามิติเดียว
ฟังก์ชันนี้มี 2 รูปแบบ ฟังก์ชันหนึ่งจะแสดงผลที่อยู่ของค่าโดยใช้ void* ส่วนอีกฟังก์ชันจะแสดงผลค่าจริง เช่น rsGetElementAt() เทียบกับ rsGetElementAt_int4() สำหรับประเภทพื้นฐาน ให้ใช้ฟังก์ชันหลังเสมอเนื่องจากมีประสิทธิภาพมากกว่า
rsGetElementAtYuv_uchar_U : รับคอมโพเนนต์ U ของการจัดสรร YUV
uchar rsGetElementAtYuv_uchar_U(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
แยกคอมโพเนนต์ U ของค่า YUV เดียวจากการกําหนดค่า 2 มิติของ YUV
อาจมีการจัดเก็บคอมโพเนนต์ Y, U และ V ไว้ภายในการจัดสรรหากเป็นระนาบที่แตกต่างกันและความละเอียดต่างกัน พิกัด x, y ที่ระบุไว้ที่นี่อยู่ในรูปแบบของมิติของระนาบ Y
โปรดดู rsGetElementAtYuv_uchar_Y()
rsGetElementAtYuv_uchar_V : รับคอมโพเนนต์ V ของการจัดสรร YUV
uchar rsGetElementAtYuv_uchar_V(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
แยกคอมโพเนนต์ V ของค่า YUV เดียวจากการกําหนดค่า 2 มิติของ YUV
อาจมีการจัดเก็บคอมโพเนนต์ Y, U และ V ไว้ภายในการจัดสรรหากเป็นระนาบที่แตกต่างกันและความละเอียดต่างกัน พิกัด x, y ที่ระบุไว้ที่นี่อยู่ในรูปแบบของมิติของระนาบ Y
โปรดดู rsGetElementAtYuv_uchar_Y()
rsGetElementAtYuv_uchar_Y : รับองค์ประกอบ Y ของการจัดสรร YUV
uchar rsGetElementAtYuv_uchar_Y(rs_allocation a, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
แยกคอมโพเนนต์ Y ของค่า YUV เดียวจากการกําหนดค่า 2 มิติของ YUV
อาจมีการจัดเก็บคอมโพเนนต์ Y, U และ V ไว้ภายในการจัดสรรหากเป็นระนาบที่แตกต่างกันและความละเอียดต่างกัน พิกัด x, y ที่ระบุไว้ที่นี่อยู่ในรูปแบบของมิติของระนาบ Y
ดู rsGetElementAtYuv_uchar_U() และ rsGetElementAtYuv_uchar_V()
rsSample : สุ่มตัวอย่างค่าจากการจองพื้นผิว
float4 rsSample(rs_allocation a, rs_sampler s, float location); | เพิ่มใน API ระดับ 16 |
float4 rsSample(rs_allocation a, rs_sampler s, float location, float lod); | เพิ่มใน API ระดับ 16 |
float4 rsSample(rs_allocation a, rs_sampler s, float2 location); | เพิ่มใน API ระดับ 16 |
float4 rsSample(rs_allocation a, rs_sampler s, float2 location, float lod); | เพิ่มใน API ระดับ 16 |
พารามิเตอร์
a | การจัดสรรที่จะสุ่มตัวอย่าง |
---|---|
s | สถานะเครื่องวัด |
สถานที่ | ตำแหน่งที่จะสุ่มตัวอย่าง |
lod | ระดับ MIP ที่จะสุ่มตัวอย่าง สำหรับค่าเศษ ระบบจะปัดเศษระดับ MIP หากใช้ RS_SAMPLER_LINEAR_MIP_LINEAR |
ดึงค่าจากการกําหนดค่าพื้นผิวในลักษณะที่อธิบายโดยเครื่องมือสุ่มตัวอย่าง
หากการจัดสรรเป็นแบบ 1 มิติ ให้ใช้ตัวแปรที่มีค่าลอยสำหรับตําแหน่ง สำหรับ 2 มิติ ให้ใช้ตัวแปร float2
ดูรายละเอียดเพิ่มเติมได้ที่ android.renderscript.Sampler
rsSetElementAt : ตั้งค่าเซลล์ของการจัดสรร
void rsSetElementAt(rs_allocation a, void* ptr, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt(rs_allocation a, void* ptr, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_char(rs_allocation a, char val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_char(rs_allocation a, char val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_char(rs_allocation a, char val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_char2(rs_allocation a, char2 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_char2(rs_allocation a, char2 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_char2(rs_allocation a, char2 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_char3(rs_allocation a, char3 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_char3(rs_allocation a, char3 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_char3(rs_allocation a, char3 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_char4(rs_allocation a, char4 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_char4(rs_allocation a, char4 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_char4(rs_allocation a, char4 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_double(rs_allocation a, double val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_double(rs_allocation a, double val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_double(rs_allocation a, double val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_double2(rs_allocation a, double2 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_double2(rs_allocation a, double2 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_double2(rs_allocation a, double2 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_double3(rs_allocation a, double3 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_double3(rs_allocation a, double3 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_double3(rs_allocation a, double3 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_double4(rs_allocation a, double4 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_double4(rs_allocation a, double4 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_double4(rs_allocation a, double4 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_float(rs_allocation a, float val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_float(rs_allocation a, float val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_float(rs_allocation a, float val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_float2(rs_allocation a, float2 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_float2(rs_allocation a, float2 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_float2(rs_allocation a, float2 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_float3(rs_allocation a, float3 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_float3(rs_allocation a, float3 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_float3(rs_allocation a, float3 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_float4(rs_allocation a, float4 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_float4(rs_allocation a, float4 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_float4(rs_allocation a, float4 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_half(rs_allocation a, half val, uint32_t x); | เพิ่มใน API ระดับ 23 |
void rsSetElementAt_half(rs_allocation a, half val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 23 |
void rsSetElementAt_half(rs_allocation a, half val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 23 |
void rsSetElementAt_half2(rs_allocation a, half2 val, uint32_t x); | เพิ่มใน API ระดับ 23 |
void rsSetElementAt_half2(rs_allocation a, half2 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 23 |
void rsSetElementAt_half2(rs_allocation a, half2 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 23 |
void rsSetElementAt_half3(rs_allocation a, half3 val, uint32_t x); | เพิ่มใน API ระดับ 23 |
void rsSetElementAt_half3(rs_allocation a, half3 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 23 |
void rsSetElementAt_half3(rs_allocation a, half3 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 23 |
void rsSetElementAt_half4(rs_allocation a, half4 val, uint32_t x); | เพิ่มใน API ระดับ 23 |
void rsSetElementAt_half4(rs_allocation a, half4 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 23 |
void rsSetElementAt_half4(rs_allocation a, half4 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 23 |
void rsSetElementAt_int(rs_allocation a, int val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_int(rs_allocation a, int val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_int(rs_allocation a, int val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_int2(rs_allocation a, int2 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_int2(rs_allocation a, int2 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_int2(rs_allocation a, int2 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_int3(rs_allocation a, int3 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_int3(rs_allocation a, int3 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_int3(rs_allocation a, int3 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_int4(rs_allocation a, int4 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_int4(rs_allocation a, int4 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_int4(rs_allocation a, int4 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_long(rs_allocation a, long val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_long(rs_allocation a, long val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_long(rs_allocation a, long val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_long2(rs_allocation a, long2 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_long2(rs_allocation a, long2 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_long2(rs_allocation a, long2 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_long3(rs_allocation a, long3 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_long3(rs_allocation a, long3 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_long3(rs_allocation a, long3 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_long4(rs_allocation a, long4 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_long4(rs_allocation a, long4 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_long4(rs_allocation a, long4 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_short(rs_allocation a, short val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_short(rs_allocation a, short val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_short(rs_allocation a, short val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_short2(rs_allocation a, short2 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_short2(rs_allocation a, short2 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_short2(rs_allocation a, short2 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_short3(rs_allocation a, short3 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_short3(rs_allocation a, short3 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_short3(rs_allocation a, short3 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_short4(rs_allocation a, short4 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_short4(rs_allocation a, short4 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_short4(rs_allocation a, short4 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uchar(rs_allocation a, uchar val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uchar(rs_allocation a, uchar val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uchar(rs_allocation a, uchar val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uchar2(rs_allocation a, uchar2 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uchar2(rs_allocation a, uchar2 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uchar2(rs_allocation a, uchar2 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uchar3(rs_allocation a, uchar3 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uchar3(rs_allocation a, uchar3 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uchar3(rs_allocation a, uchar3 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uchar4(rs_allocation a, uchar4 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uchar4(rs_allocation a, uchar4 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uchar4(rs_allocation a, uchar4 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uint(rs_allocation a, uint val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uint(rs_allocation a, uint val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uint(rs_allocation a, uint val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uint2(rs_allocation a, uint2 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uint2(rs_allocation a, uint2 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uint2(rs_allocation a, uint2 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uint3(rs_allocation a, uint3 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uint3(rs_allocation a, uint3 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uint3(rs_allocation a, uint3 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uint4(rs_allocation a, uint4 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uint4(rs_allocation a, uint4 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_uint4(rs_allocation a, uint4 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ulong(rs_allocation a, ulong val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ulong(rs_allocation a, ulong val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ulong(rs_allocation a, ulong val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ulong2(rs_allocation a, ulong2 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ulong2(rs_allocation a, ulong2 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ulong2(rs_allocation a, ulong2 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ulong3(rs_allocation a, ulong3 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ulong3(rs_allocation a, ulong3 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ulong3(rs_allocation a, ulong3 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ulong4(rs_allocation a, ulong4 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ulong4(rs_allocation a, ulong4 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ulong4(rs_allocation a, ulong4 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ushort(rs_allocation a, ushort val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ushort(rs_allocation a, ushort val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ushort(rs_allocation a, ushort val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ushort2(rs_allocation a, ushort2 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ushort2(rs_allocation a, ushort2 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ushort2(rs_allocation a, ushort2 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ushort3(rs_allocation a, ushort3 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ushort3(rs_allocation a, ushort3 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ushort3(rs_allocation a, ushort3 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ushort4(rs_allocation a, ushort4 val, uint32_t x); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ushort4(rs_allocation a, ushort4 val, uint32_t x, uint32_t y); | เพิ่มใน API ระดับ 18 |
void rsSetElementAt_ushort4(rs_allocation a, ushort4 val, uint32_t x, uint32_t y, uint32_t z); | เพิ่มใน API ระดับ 18 |
ฟังก์ชันนี้จะจัดเก็บค่าลงในเซลล์เดียวของการแบ่งสรร
เมื่อจัดเก็บข้อมูลลงในการจัดสรร 3 มิติ ให้ใช้ตัวแปร x, y, z ในทํานองเดียวกัน ให้ใช้ตัวแปร x, y สำหรับการกําหนดค่า 2 มิติ และ x สำหรับการกําหนดค่ามิติเดียว
ฟังก์ชันนี้มี 2 รูปแบบ ฟังก์ชันหนึ่งจะส่งค่าที่จะจัดเก็บโดยใช้ void* ส่วนอีกฟังก์ชันหนึ่งจะมีค่าจริงเป็นอาร์กิวเมนต์ เช่น rsSetElementAt() เทียบกับ rsSetElementAt_int4() สำหรับประเภทพื้นฐาน ให้ใช้ฟังก์ชันหลังเสมอเนื่องจากมีประสิทธิภาพมากกว่า
โปรดดู rsGetElementAt() ด้วย