• Home
  • Raw
  • Download

Lines Matching refs:rsc

24 Mesh::Mesh(Context *rsc) : ObjectBase(rsc) {  in Mesh()  argument
38 Mesh::Mesh(Context *rsc, in Mesh() argument
40 uint32_t primitivesCount) : ObjectBase(rsc) { in Mesh()
81 void Mesh::serialize(Context *rsc, OStream *stream) const { in serialize() argument
89 mHal.state.vertexBuffers[vCount]->serialize(rsc, stream); in serialize()
99 mHal.state.indexBuffers[pCount]->serialize(rsc, stream); in serialize()
106 Mesh *Mesh::createFromStream(Context *rsc, IStream *stream) { in createFromStream() argument
122 Allocation *vertexAlloc = Allocation::createFromStream(rsc, stream); in createFromStream()
141 Allocation *indexAlloc = Allocation::createFromStream(rsc, stream); in createFromStream()
147 Mesh *mesh = new Mesh(rsc, vertexBuffersCount, primitivesCount); in createFromStream()
167 mesh->uploadAll(rsc); in createFromStream()
172 void Mesh::render(Context *rsc) const { in render()
174 renderPrimitive(rsc, ct); in render()
178 void Mesh::renderPrimitive(Context *rsc, uint32_t primIndex) const { in renderPrimitive() argument
185 … renderPrimitiveRange(rsc, primIndex, 0, mHal.state.indexBuffers[primIndex]->getType()->getDimX()); in renderPrimitive()
189 renderPrimitiveRange(rsc, primIndex, 0, mHal.state.vertexBuffers[0]->getType()->getDimX()); in renderPrimitive()
192 void Mesh::renderPrimitiveRange(Context *rsc, uint32_t primIndex, uint32_t start, uint32_t len) con… in renderPrimitiveRange() argument
201 void Mesh::uploadAll(Context *rsc) { in uploadAll() argument
204 rsc->mHal.funcs.allocation.markDirty(rsc, mHal.state.vertexBuffers[ct]); in uploadAll()
210 rsc->mHal.funcs.allocation.markDirty(rsc, mHal.state.indexBuffers[ct]); in uploadAll()
215 void Mesh::computeBBox(Context *rsc) { in computeBBox() argument
232 const uint8_t *bp = (const uint8_t *)rsc->mHal.funcs.allocation.lock1D( in computeBBox()
233 rsc, posAlloc); in computeBBox()
262 rsc->mHal.funcs.allocation.unlock1D(rsc, posAlloc); in computeBBox()
266 RsMesh rsi_MeshCreate(Context *rsc, in rsi_MeshCreate() argument
271 Mesh *sm = new Mesh(rsc, vtxCount, idxCount); in rsi_MeshCreate()