@@ -125,15 +125,15 @@ typedef struct {
125125
126126 void (*data1D)(const Context *rsc, const Allocation *alloc,
127127 uint32_t xoff, uint32_t lod, uint32_t count,
128- const void *data, uint32_t sizeBytes);
128+ const void *data, size_t sizeBytes);
129129 void (*data2D)(const Context *rsc, const Allocation *alloc,
130130 uint32_t xoff, uint32_t yoff, uint32_t lod,
131131 RsAllocationCubemapFace face, uint32_t w, uint32_t h,
132- const void *data, uint32_t sizeBytes);
132+ const void *data, size_t sizeBytes);
133133 void (*data3D)(const Context *rsc, const Allocation *alloc,
134134 uint32_t xoff, uint32_t yoff, uint32_t zoff,
135135 uint32_t lod, RsAllocationCubemapFace face,
136- uint32_t w, uint32_t h, uint32_t d, const void *data, uint32_t sizeBytes);
136+ uint32_t w, uint32_t h, uint32_t d, const void *data, size_t sizeBytes);
137137
138138 // Allocation to allocation copies
139139 void (*allocData1D)(const Context *rsc,
@@ -157,9 +157,9 @@ typedef struct {
157157 uint32_t srcLod, RsAllocationCubemapFace srcFace);
158158
159159 void (*elementData1D)(const Context *rsc, const Allocation *alloc, uint32_t x,
160- const void *data, uint32_t elementOff, uint32_t sizeBytes);
160+ const void *data, uint32_t elementOff, size_t sizeBytes);
161161 void (*elementData2D)(const Context *rsc, const Allocation *alloc, uint32_t x, uint32_t y,
162- const void *data, uint32_t elementOff, uint32_t sizeBytes);
162+ const void *data, uint32_t elementOff, size_t sizeBytes);
163163
164164
165165 } allocation;
@@ -178,14 +178,14 @@ typedef struct {
178178
179179 struct {
180180 bool (*init)(const Context *rsc, const ProgramVertex *pv,
181- const char * shader, uint32_t shaderLen);
181+ const char * shader, size_t shaderLen);
182182 void (*setActive)(const Context *rsc, const ProgramVertex *pv);
183183 void (*destroy)(const Context *rsc, const ProgramVertex *pv);
184184 } vertex;
185185
186186 struct {
187187 bool (*init)(const Context *rsc, const ProgramFragment *pf,
188- const char * shader, uint32_t shaderLen);
188+ const char * shader, size_t shaderLen);
189189 void (*setActive)(const Context *rsc, const ProgramFragment *pf);
190190 void (*destroy)(const Context *rsc, const ProgramFragment *pf);
191191 } fragment;
0 commit comments