slang-shaders/border/shaders/average_fill/crop_and_sample_top.slang
fishcu 77b6ca6bed
Add average fill (#443)
* Implement average fill

* Implement corner blend modes

* Add copyright; Change defaults; Add some polish

* Add settings delimiter

* Fix settings name
2023-06-11 15:57:38 -05:00

15 lines
395 B
Plaintext

#version 450
// See compose.slang for copyright and other information.
#include "parameters.slang"
// clang-format off
#define EFF_CROP_TOP (param.OS_CROP_TOP)
#define EFF_CROP_BOTTOM (param.InputSize.y - param.OS_CROP_TOP - param.SAMPLE_SIZE)
#define EFF_CROP_LEFT (param.OS_CROP_LEFT)
#define EFF_CROP_RIGHT (param.OS_CROP_RIGHT)
// clang-format on
#include "crop_and_sample_common.slang"