Skip to content

Commit

Permalink
Texture Affine Crop Fix (#60)
Browse files Browse the repository at this point in the history
* fix sampler

* update version
  • Loading branch information
eugenebokhan authored and s1ddok committed Dec 3, 2019
1 parent 550474e commit 8a563dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Alloy/Shaders/Shaders.metal
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ kernel void textureAffineCrop(texture2d<half, access::sample> source [[ texture(
checkPosition(position, textureSize, deviceSupportsNonuniformThreadgroups);

constexpr sampler s(coord::normalized,
address::clamp_to_edge,
address::clamp_to_zero,
filter::linear);

const float2 textureSizef = float2(textureSize);
Expand Down

0 comments on commit 8a563dd

Please sign in to comment.