Changed address space of default samplers.
PiperOrigin-RevId: 316728298 Change-Id: Ib74d1bbbb5561a29aa569e2960a3776eceb9f237
This commit is contained in:
parent
8d9fee90ba
commit
dd3e910e21
@ -119,13 +119,13 @@ std::string GetCommonDefines(CalculationsPrecision precision) {
|
||||
}
|
||||
|
||||
result +=
|
||||
"const sampler_t smp_edge = CLK_NORMALIZED_COORDS_FALSE | "
|
||||
"__constant sampler_t smp_edge = CLK_NORMALIZED_COORDS_FALSE | "
|
||||
"CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_NEAREST;\n";
|
||||
result +=
|
||||
"const sampler_t smp_none = CLK_NORMALIZED_COORDS_FALSE | "
|
||||
"__constant sampler_t smp_none = CLK_NORMALIZED_COORDS_FALSE | "
|
||||
"CLK_ADDRESS_NONE | CLK_FILTER_NEAREST;\n";
|
||||
result +=
|
||||
"const sampler_t smp_zero = CLK_NORMALIZED_COORDS_FALSE | "
|
||||
"__constant sampler_t smp_zero = CLK_NORMALIZED_COORDS_FALSE | "
|
||||
"CLK_ADDRESS_CLAMP | CLK_FILTER_NEAREST;\n";
|
||||
|
||||
return result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user