Cycles: some small code refactoring related to buffer parameters.

This commit is contained in:
Brecht Van Lommel
2011-12-21 13:48:35 +00:00
parent 045a91a378
commit 34909c64e5
4 changed files with 26 additions and 26 deletions

View File

@@ -56,6 +56,12 @@ public:
full_height = 0;
}
void get_offset_stride(int& offset, int& stride)
{
offset = -(full_x + full_y*width);
stride = width;
}
bool modified(const BufferParams& params)
{
return !(full_x == params.full_x