public void OnCreate() { m_DeformedMeshData = new ComputeBufferWrapper <VertexData>("_DeformedMeshData", k_ChunkSize); m_SharedMeshBuffer = new ComputeBufferWrapper <VertexData>("_SharedMeshData", k_ChunkSize); m_DeformedMeshData.PushDataToGlobal(); }
public bool ResizeAndPushDeformMeshBuffersIfRequired(int requiredSize) { var size = m_DeformedMeshData.BufferSize; if (size <= requiredSize || size - requiredSize > k_ChunkSize) { var newSize = ((requiredSize / k_ChunkSize) + 1) * k_ChunkSize; m_DeformedMeshData.Resize(newSize); m_DeformedMeshData.PushDataToGlobal(); return(true); } return(false); }
public void PushDeformPassData() { m_BlendWeights.PushDataToGlobal(); }
public void PushMeshData() { m_SharedMeshBuffer.PushDataToGlobal(); }
public void PushDeformPassData() { m_SkinMatrices.PushDataToGlobal(); }