Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/metal/mtl_texture.hh
| Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | return ((input_data_type == other.input_data_type) && | ||||
| (output_data_type == other.output_data_type) && | (output_data_type == other.output_data_type) && | ||||
| (component_count_input == other.component_count_input) && | (component_count_input == other.component_count_input) && | ||||
| (component_count_output == other.component_count_output)); | (component_count_output == other.component_count_output)); | ||||
| } | } | ||||
| uint64_t hash() const | uint64_t hash() const | ||||
| { | { | ||||
| blender::DefaultHash<std::string> string_hasher; | blender::DefaultHash<std::string> string_hasher; | ||||
| return uint64_t(string_hasher( | return (uint64_t)string_hasher( | ||||
| this->input_data_type + this->output_data_type + | this->input_data_type + this->output_data_type + | ||||
| std::to_string((this->component_count_input << 8) + this->component_count_output))); | std::to_string((this->component_count_input << 8) + this->component_count_output)); | ||||
| } | } | ||||
| }; | }; | ||||
| /* Type of data is being written to the depth target: | /* Type of data is being written to the depth target: | ||||
| * 0 = floating point (0.0 - 1.0) | * 0 = floating point (0.0 - 1.0) | ||||
| * 1 = 24 bit integer (0 - 2^24) | * 1 = 24 bit integer (0 - 2^24) | ||||
| * 2 = 32 bit integer (0 - 2^32) */ | * 2 = 32 bit integer (0 - 2^32) */ | ||||
| ▲ Show 20 Lines • Show All 526 Lines • Show Last 20 Lines | |||||