Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/device.h
| Context not available. | |||||
| DEVICE_MULTI | DEVICE_MULTI | ||||
| }; | }; | ||||
| enum InterpolationType { | |||||
brecht: Can this be moved to kernel_types.h, so we can use it instead of int everywhere? | |||||
Not Done Inline ActionsWell I am not sure about including any kernel_*** in device. It is something that we want to access both above and blow device level. juicyfruit: Well I am not sure about including any kernel_*** in device.
Maybe in util_types.h although… | |||||
| NOT_TEXTURE, /* cuda also use texture space to store other objects */ | |||||
Not Done Inline ActionsWould rename to "NO_TEXTURE", more correct grammar wise. Or we invert the logic and call it "DATA_TEXTURE" or so. I leave the decision to Brecht. :) dingto: Would rename to "NO_TEXTURE", more correct grammar wise. Or we invert the logic and call it… | |||||
Not Done Inline ActionsI would call it INTERPOLATION_NONE, since as far as I can tell this value disables interpolation. brecht: I would call it INTERPOLATION_NONE, since as far as I can tell this value disables… | |||||
| INTERPOLATION_LINEAR, | |||||
| INTERPOLATION_CLOSEST, | |||||
| INTERPOLATION_CUBIC, | |||||
| INTERPOLATION_SMART | |||||
| }; | |||||
| class DeviceInfo { | class DeviceInfo { | ||||
| public: | public: | ||||
| DeviceType type; | DeviceType type; | ||||
| Context not available. | |||||
| /* texture memory */ | /* texture memory */ | ||||
| virtual void tex_alloc(const char *name, device_memory& mem, | virtual void tex_alloc(const char *name, device_memory& mem, | ||||
| bool interpolation = false, bool periodic = false) {}; | InterpolationType interpolation = NOT_TEXTURE, bool periodic = false) {}; | ||||
| virtual void tex_free(device_memory& mem) {}; | virtual void tex_free(device_memory& mem) {}; | ||||
| /* pixel memory */ | /* pixel memory */ | ||||
| Context not available. | |||||
Can this be moved to kernel_types.h, so we can use it instead of int everywhere?