Commit 4de09a14 by Philipp Adolf

Rename edgeOffset to edge_offset

parent 4046895f
...@@ -744,8 +744,8 @@ Subdivision::Result Subdivision::runShader(Input input, Tables &tables) { ...@@ -744,8 +744,8 @@ Subdivision::Result Subdivision::runShader(Input input, Tables &tables) {
runVertexShader(input.vertex_buffer.size(), input.vb_handle, vertex_indices_handle, vertex_offsets_handle, output_handle); runVertexShader(input.vertex_buffer.size(), input.vb_handle, vertex_indices_handle, vertex_offsets_handle, output_handle);
int vertexTime = timer.elapsed(); int vertexTime = timer.elapsed();
timer.restart(); timer.restart();
int edgeOffset = input.vertex_buffer.size(); int edge_offset = input.vertex_buffer.size();
runEdgeShader(tables.edge_indices.size() / 4, input.vb_handle, edge_indices_handle, output_handle, edgeOffset); runEdgeShader(tables.edge_indices.size() / 4, input.vb_handle, edge_indices_handle, output_handle, edge_offset);
int edgeTime = timer.elapsed(); int edgeTime = timer.elapsed();
timer.restart(); timer.restart();
...@@ -761,8 +761,8 @@ Subdivision::Result Subdivision::runShader(Input input, Tables &tables) { ...@@ -761,8 +761,8 @@ Subdivision::Result Subdivision::runShader(Input input, Tables &tables) {
} }
qCDebug(log_subdiv_trace) << "New edge points:"; qCDebug(log_subdiv_trace) << "New edge points:";
for (int i = 0; i < tables.edge_indices.size() / 4; i++) { for (int i = 0; i < tables.edge_indices.size() / 4; i++) {
qCDebug(log_subdiv_trace) << ptr[edgeOffset + i].pos; qCDebug(log_subdiv_trace) << ptr[edge_offset + i].pos;
result.vertex_buffer.push_back(ptr[edgeOffset + i]); result.vertex_buffer.push_back(ptr[edge_offset + i]);
} }
int bufferbildTime = timer.elapsed(); int bufferbildTime = timer.elapsed();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment