Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/metal/kernels/depth_2d_update_info.hh
| Show All 15 Lines | GPU_SHADER_CREATE_INFO(depth_2d_update_info_base) | ||||
| .push_constant(Type::VEC2, "offset") | .push_constant(Type::VEC2, "offset") | ||||
| .push_constant(Type::VEC2, "size") | .push_constant(Type::VEC2, "size") | ||||
| .push_constant(Type::INT, "mip") | .push_constant(Type::INT, "mip") | ||||
| .sampler(0, ImageType::FLOAT_2D, "source_data", Frequency::PASS) | .sampler(0, ImageType::FLOAT_2D, "source_data", Frequency::PASS) | ||||
| .depth_write(DepthWrite::ANY) | .depth_write(DepthWrite::ANY) | ||||
| .vertex_source("depth_2d_update_vert.glsl"); | .vertex_source("depth_2d_update_vert.glsl"); | ||||
| GPU_SHADER_CREATE_INFO(depth_2d_update_float) | GPU_SHADER_CREATE_INFO(depth_2d_update_float) | ||||
| .metal_backend_only(true) | |||||
| .fragment_source("depth_2d_update_float_frag.glsl") | .fragment_source("depth_2d_update_float_frag.glsl") | ||||
| .additional_info("depth_2d_update_info_base") | .additional_info("depth_2d_update_info_base") | ||||
| // .do_static_compilation(true) | // .do_static_compilation(true) | ||||
| .depth_write(DepthWrite::ANY); | .depth_write(DepthWrite::ANY); | ||||
| GPU_SHADER_CREATE_INFO(depth_2d_update_int24) | GPU_SHADER_CREATE_INFO(depth_2d_update_int24) | ||||
| .metal_backend_only(true) | |||||
| .fragment_source("depth_2d_update_int24_frag.glsl") | .fragment_source("depth_2d_update_int24_frag.glsl") | ||||
| .additional_info("depth_2d_update_info_base") | .additional_info("depth_2d_update_info_base") | ||||
| // .do_static_compilation(true) | // .do_static_compilation(true) | ||||
| .depth_write(DepthWrite::ANY); | .depth_write(DepthWrite::ANY); | ||||
| GPU_SHADER_CREATE_INFO(depth_2d_update_int32) | GPU_SHADER_CREATE_INFO(depth_2d_update_int32) | ||||
| .metal_backend_only(true) | |||||
| .fragment_source("depth_2d_update_int32_frag.glsl") | .fragment_source("depth_2d_update_int32_frag.glsl") | ||||
| .additional_info("depth_2d_update_info_base") | .additional_info("depth_2d_update_info_base") | ||||
| // .do_static_compilation(true) | // .do_static_compilation(true) | ||||
| .depth_write(DepthWrite::ANY); | .depth_write(DepthWrite::ANY); | ||||